Skip to content

Commit 8e8e590

Browse files
committed
introduce helm-dependency-extra-args
addresses #368 Signed-off-by: Krzysztof Nazarewski <[email protected]>
1 parent aabb51e commit 8e8e590

File tree

11 files changed

+225
-183
lines changed

11 files changed

+225
-183
lines changed

ct/cmd/root.go

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ func addCommonLintAndInstallFlags(flags *pflag.FlagSet) {
9595
specified on a per-repo basis with an equals sign as delimiter
9696
(e.g. 'myrepo=--username test --password secret'). May be specified
9797
multiple times or separate values with commas`))
98+
flags.StringSlice("helm-dependency-extra-args", []string{}, heredoc.Doc(`
99+
Additional arguments for 'helm dependency build' (e.g. ["--skip-refresh"]`))
98100
flags.Bool("debug", false, heredoc.Doc(`
99101
Print CLI calls of external tools to stdout (caution: setting this may
100102
expose sensitive data when helm-repo-extra-args contains passwords)`))

doc/ct.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ in given chart directories.
2626
* [ct list-changed](ct_list-changed.md) - List changed charts
2727
* [ct version](ct_version.md) - Print version information
2828

29-
###### Auto generated by spf13/cobra on 16-Mar-2022
29+
###### Auto generated by spf13/cobra on 23-Mar-2022

doc/ct_install.md

+44-43
Original file line numberDiff line numberDiff line change
@@ -29,52 +29,53 @@ ct install [flags]
2929
### Options
3030

3131
```
32-
--all Process all charts except those explicitly excluded.
33-
Disables changed charts detection and version increment checking
34-
--build-id string An optional, arbitrary identifier that is added to the name of the namespace a
35-
chart is installed into. In a CI environment, this could be the build number or
36-
the ID of a pull request. If not specified, the name of the chart is used
37-
--chart-dirs strings Directories containing Helm charts. May be specified multiple times
38-
or separate values with commas (default [charts])
39-
--chart-repos strings Additional chart repositories for dependency resolutions.
40-
Repositories should be formatted as 'name=url' (ex: local=http://127.0.0.1:8879/charts).
41-
May be specified multiple times or separate values with commas
42-
--charts strings Specific charts to test. Disables changed charts detection and
43-
version increment checking. May be specified multiple times
44-
or separate values with commas
45-
--config string Config file
46-
--debug Print CLI calls of external tools to stdout (caution: setting this may
47-
expose sensitive data when helm-repo-extra-args contains passwords)
48-
--exclude-deprecated Skip charts that are marked as deprecated
49-
--excluded-charts strings Charts that should be skipped. May be specified multiple times
50-
or separate values with commas
51-
--helm-extra-args string Additional arguments for Helm. Must be passed as a single quoted string
52-
(e.g. "--timeout 500s"
53-
--helm-extra-set-args string Additional arguments for Helm. Must be passed as a single quoted string
54-
(e.g. "--set=name=value"
55-
--helm-repo-extra-args strings Additional arguments for the 'helm repo add' command to be
56-
specified on a per-repo basis with an equals sign as delimiter
57-
(e.g. 'myrepo=--username test --password secret'). May be specified
58-
multiple times or separate values with commas
59-
-h, --help help for install
60-
--namespace string Namespace to install the release(s) into. If not specified, each release will be
61-
installed in its own randomly generated namespace
62-
--print-config Prints the configuration to stderr (caution: setting this may
63-
expose sensitive data when helm-repo-extra-args contains passwords)
64-
--release-label string The label to be used as a selector when inspecting resources created by charts.
65-
This is only used if namespace is specified (default "app.kubernetes.io/instance")
66-
--remote string The name of the Git remote used to identify changed charts (default "origin")
67-
--since string The Git reference used to identify changed charts (default "HEAD")
68-
--skip-missing-values When --upgrade has been passed, this flag will skip testing CI values files from the
69-
previous chart revision if they have been deleted or renamed at the current chart
70-
revision
71-
--target-branch string The name of the target branch used to identify changed charts (default "master")
72-
--upgrade Whether to test an in-place upgrade of each chart from its previous revision if the
73-
current version should not introduce a breaking change according to the SemVer spec
32+
--all Process all charts except those explicitly excluded.
33+
Disables changed charts detection and version increment checking
34+
--build-id string An optional, arbitrary identifier that is added to the name of the namespace a
35+
chart is installed into. In a CI environment, this could be the build number or
36+
the ID of a pull request. If not specified, the name of the chart is used
37+
--chart-dirs strings Directories containing Helm charts. May be specified multiple times
38+
or separate values with commas (default [charts])
39+
--chart-repos strings Additional chart repositories for dependency resolutions.
40+
Repositories should be formatted as 'name=url' (ex: local=http://127.0.0.1:8879/charts).
41+
May be specified multiple times or separate values with commas
42+
--charts strings Specific charts to test. Disables changed charts detection and
43+
version increment checking. May be specified multiple times
44+
or separate values with commas
45+
--config string Config file
46+
--debug Print CLI calls of external tools to stdout (caution: setting this may
47+
expose sensitive data when helm-repo-extra-args contains passwords)
48+
--exclude-deprecated Skip charts that are marked as deprecated
49+
--excluded-charts strings Charts that should be skipped. May be specified multiple times
50+
or separate values with commas
51+
--helm-dependency-extra-args strings Additional arguments for 'helm dependency build' (e.g. ["--skip-refresh"]
52+
--helm-extra-args string Additional arguments for Helm. Must be passed as a single quoted string
53+
(e.g. "--timeout 500s"
54+
--helm-extra-set-args string Additional arguments for Helm. Must be passed as a single quoted string
55+
(e.g. "--set=name=value"
56+
--helm-repo-extra-args strings Additional arguments for the 'helm repo add' command to be
57+
specified on a per-repo basis with an equals sign as delimiter
58+
(e.g. 'myrepo=--username test --password secret'). May be specified
59+
multiple times or separate values with commas
60+
-h, --help help for install
61+
--namespace string Namespace to install the release(s) into. If not specified, each release will be
62+
installed in its own randomly generated namespace
63+
--print-config Prints the configuration to stderr (caution: setting this may
64+
expose sensitive data when helm-repo-extra-args contains passwords)
65+
--release-label string The label to be used as a selector when inspecting resources created by charts.
66+
This is only used if namespace is specified (default "app.kubernetes.io/instance")
67+
--remote string The name of the Git remote used to identify changed charts (default "origin")
68+
--since string The Git reference used to identify changed charts (default "HEAD")
69+
--skip-missing-values When --upgrade has been passed, this flag will skip testing CI values files from the
70+
previous chart revision if they have been deleted or renamed at the current chart
71+
revision
72+
--target-branch string The name of the target branch used to identify changed charts (default "master")
73+
--upgrade Whether to test an in-place upgrade of each chart from its previous revision if the
74+
current version should not introduce a breaking change according to the SemVer spec
7475
```
7576

7677
### SEE ALSO
7778

7879
* [ct](ct.md) - The Helm chart testing tool
7980

80-
###### Auto generated by spf13/cobra on 16-Mar-2022
81+
###### Auto generated by spf13/cobra on 23-Mar-2022

0 commit comments

Comments
 (0)