-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lifted completely from helm, no changes other that removing autocompletion as we dont have that yet Signed-off-by: Itxaka <[email protected]>
- Loading branch information
Itxaka
committed
Mar 5, 2021
1 parent
7a8c58e
commit 53d8945
Showing
45 changed files
with
1,000 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main | ||
|
||
import ( | ||
"k8s.io/client-go/util/homedir" | ||
"os" | ||
"path/filepath" | ||
) | ||
|
||
// defaultKeyring returns the expanded path to the default keyring. | ||
func defaultKeyring() string { | ||
if v, ok := os.LookupEnv("GNUPGHOME"); ok { | ||
return filepath.Join(v, "pubring.gpg") | ||
} | ||
return filepath.Join(homedir.HomeDir(), ".gnupg", "pubring.gpg") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Error: cannot load Chart.yaml: error converting YAML to JSON: yaml: line 6: did not find expected '-' indicator |
1 change: 1 addition & 0 deletions
1
cmd/hypper/testdata/output/upgrade-with-bad-or-missing-existing-release.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Error: UPGRADE FAILED: "funny-bunny" has no deployed releases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "crazy-bunny" has been upgraded 🥳 | ||
NAME: crazy-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 2 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "zany-bunny" has been upgraded 🥳 | ||
NAME: zany-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 2 | ||
TEST SUITE: None |
1 change: 1 addition & 0 deletions
1
cmd/hypper/testdata/output/upgrade-with-missing-dependencies.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Error: found in Chart.yaml, but missing in charts/ directory: reqsubchart2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "funny-bunny" has been upgraded 🥳 | ||
NAME: funny-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 5 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "funny-bunny" has been upgraded 🥳 | ||
NAME: funny-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 6 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "funny-bunny" has been upgraded 🥳 | ||
NAME: funny-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 4 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "crazy-bunny" has been upgraded 🥳 | ||
NAME: crazy-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 3 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "crazy-bunny" has been upgraded 🥳 | ||
NAME: crazy-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 3 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "funny-bunny" has been upgraded 🥳 | ||
NAME: funny-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 3 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:0 | ||
Completion ended with directive: ShellCompDirectiveDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:0 | ||
Completion ended with directive: ShellCompDirectiveDefault |
21 changes: 21 additions & 0 deletions
21
cmd/hypper/testdata/testcharts/chart-bad-requirements/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
8 changes: 8 additions & 0 deletions
8
cmd/hypper/testdata/testcharts/chart-bad-requirements/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for Kubernetes | ||
name: chart-missing-deps | ||
version: 0.1.0 | ||
dependencies: | ||
- name: reqsubchart | ||
version: 0.1.0 | ||
repository: "https://example.com/charts" |
21 changes: 21 additions & 0 deletions
21
cmd/hypper/testdata/testcharts/chart-bad-requirements/charts/reqsubchart/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
4 changes: 4 additions & 0 deletions
4
cmd/hypper/testdata/testcharts/chart-bad-requirements/charts/reqsubchart/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for Kubernetes | ||
name: reqsubchart | ||
version: 0.1.0 |
4 changes: 4 additions & 0 deletions
4
cmd/hypper/testdata/testcharts/chart-bad-requirements/charts/reqsubchart/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Default values for reqsubchart. | ||
# This is a YAML-formatted file. | ||
# Declare name/value pairs to be passed into your templates. | ||
# name: value |
4 changes: 4 additions & 0 deletions
4
cmd/hypper/testdata/testcharts/chart-bad-requirements/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Default values for reqtest. | ||
# This is a YAML-formatted file. | ||
# Declare name/value pairs to be passed into your templates. | ||
# name: value |
21 changes: 21 additions & 0 deletions
21
cmd/hypper/testdata/testcharts/chart-missing-deps/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
11 changes: 11 additions & 0 deletions
11
cmd/hypper/testdata/testcharts/chart-missing-deps/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for Kubernetes | ||
name: chart-missing-deps | ||
version: 0.1.0 | ||
dependencies: | ||
- name: reqsubchart | ||
version: 0.1.0 | ||
repository: "https://example.com/charts" | ||
- name: reqsubchart2 | ||
version: 0.2.0 | ||
repository: "https://example.com/charts" |
21 changes: 21 additions & 0 deletions
21
cmd/hypper/testdata/testcharts/chart-missing-deps/charts/reqsubchart/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
4 changes: 4 additions & 0 deletions
4
cmd/hypper/testdata/testcharts/chart-missing-deps/charts/reqsubchart/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for Kubernetes | ||
name: reqsubchart | ||
version: 0.1.0 |
4 changes: 4 additions & 0 deletions
4
cmd/hypper/testdata/testcharts/chart-missing-deps/charts/reqsubchart/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Default values for reqsubchart. | ||
# This is a YAML-formatted file. | ||
# Declare name/value pairs to be passed into your templates. | ||
# name: value |
4 changes: 4 additions & 0 deletions
4
cmd/hypper/testdata/testcharts/chart-missing-deps/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Default values for reqtest. | ||
# This is a YAML-formatted file. | ||
# Declare name/value pairs to be passed into your templates. | ||
# name: value |
7 changes: 7 additions & 0 deletions
7
cmd/hypper/testdata/testcharts/chart-with-subchart-notes/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v2 | ||
description: Chart with subchart notes | ||
name: chart-with-subchart-notes | ||
version: 0.0.1 | ||
dependencies: | ||
- name: subchart-with-notes | ||
version: 0.0.1 |
4 changes: 4 additions & 0 deletions
4
...ypper/testdata/testcharts/chart-with-subchart-notes/charts/subchart-with-notes/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v2 | ||
description: Subchart with notes | ||
name: subchart-with-notes | ||
version: 0.0.1 |
1 change: 1 addition & 0 deletions
1
...tdata/testcharts/chart-with-subchart-notes/charts/subchart-with-notes/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBCHART NOTES |
1 change: 1 addition & 0 deletions
1
cmd/hypper/testdata/testcharts/chart-with-subchart-notes/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PARENT NOTES |
8 changes: 8 additions & 0 deletions
8
cmd/hypper/testdata/testcharts/chart-with-subchart-update/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v2 | ||
description: Chart with subchart that needs to be fetched | ||
name: chart-with-subchart-update | ||
version: 0.0.1 | ||
dependencies: | ||
- name: subchart-with-notes | ||
version: 0.0.1 | ||
repository: file://../chart-with-subchart-notes/charts |
4 changes: 4 additions & 0 deletions
4
...pper/testdata/testcharts/chart-with-subchart-update/charts/subchart-with-notes/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v2 | ||
description: Subchart with notes | ||
name: subchart-with-notes | ||
version: 0.0.1 |
1 change: 1 addition & 0 deletions
1
...data/testcharts/chart-with-subchart-update/charts/subchart-with-notes/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBCHART NOTES |
1 change: 1 addition & 0 deletions
1
cmd/hypper/testdata/testcharts/chart-with-subchart-update/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PARENT NOTES |
7 changes: 7 additions & 0 deletions
7
cmd/hypper/testdata/testcharts/upgradetest/templates/configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "{{ .Release.Name }}-configmap" | ||
data: | ||
myvalue: "Hello World" | ||
drink: {{ .Values.favoriteDrink }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
favoriteDrink: beer |
Oops, something went wrong.