feat: add --labels for template subcommand

Signed-off-by: yxxhero <aiopsclub@163.com>
pull/12434/head
yxxhero 2 years ago
parent 4a5e26b86c
commit 658545f14f

@ -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

Loading…
Cancel
Save