mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #31683 from majiayu000/fix-13198---api-versions-is-undocumented-1230-2329
Some checks failed
build-test / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
golangci-lint / golangci-lint (push) Has been cancelled
release / release (push) Has been cancelled
release / canary-release (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Some checks failed
build-test / build (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
golangci-lint / golangci-lint (push) Has been cancelled
release / release (push) Has been cancelled
release / canary-release (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
fix: `--api-versions` is undocumented
This commit is contained in:
commit
08f17fc947
1 changed files with 10 additions and 0 deletions
|
|
@ -46,6 +46,16 @@ Render chart templates locally and display the output.
|
|||
Any values that would normally be looked up or retrieved in-cluster will be
|
||||
faked locally. Additionally, none of the server-side testing of chart validity
|
||||
(e.g. whether an API is supported) is done.
|
||||
|
||||
To specify the Kubernetes API versions used for Capabilities.APIVersions, use
|
||||
the '--api-versions' flag. This flag can be specified multiple times or as a
|
||||
comma-separated list:
|
||||
|
||||
$ helm template --api-versions networking.k8s.io/v1 --api-versions cert-manager.io/v1 mychart ./mychart
|
||||
|
||||
or
|
||||
|
||||
$ helm template --api-versions networking.k8s.io/v1,cert-manager.io/v1 mychart ./mychart
|
||||
`
|
||||
|
||||
func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
||||
|
|
|
|||
Loading…
Reference in a new issue