From 658545f14fed31674333b12396602d4fe58fb03a Mon Sep 17 00:00:00 2001 From: yxxhero Date: Fri, 29 Sep 2023 19:35:24 +0800 Subject: [PATCH] feat: add --labels for template subcommand Signed-off-by: yxxhero --- cmd/helm/template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/helm/template.go b/cmd/helm/template.go index a16cbc76e..7ff2fe712 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -200,6 +200,7 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { f.StringVar(&kubeVersion, "kube-version", "", "Kubernetes version used for Capabilities.KubeVersion") f.StringSliceVarP(&extraAPIs, "api-versions", "a", []string{}, "Kubernetes api versions used for Capabilities.APIVersions") f.BoolVar(&client.UseReleaseName, "release-name", false, "use release name in the output-dir path.") + f.StringToStringVarP(&client.Labels, "labels", "l", nil, "Labels that would be added to release metadata. Should be divided by comma.") bindPostRenderFlag(cmd, &client.PostRenderer) return cmd