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