Merge pull request #126914 from carlory/fix-kubeadm-3045

kubeadm remove the deprecated flag '--experimental-output'
This commit is contained in:
Kubernetes Prow Robot 2024-08-27 19:17:03 +01:00 committed by GitHub
commit e9c9a27c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,8 +105,6 @@ func (pf *PrintFlags) AddFlags(cmd *cobra.Command) {
pf.JSONYamlPrintFlags.AddFlags(cmd)
pf.KubeTemplatePrintFlags.AddFlags(cmd)
cmd.Flags().StringVarP(pf.OutputFormat, "output", "o", *pf.OutputFormat, fmt.Sprintf("Output format. One of: %s.", strings.Join(pf.AllowedFormats(), "|")))
cmd.Flags().StringVarP(pf.OutputFormat, "experimental-output", "", *pf.OutputFormat, fmt.Sprintf("Output format. One of: %s.", strings.Join(pf.AllowedFormats(), "|")))
_ = cmd.Flags().MarkDeprecated("experimental-output", "please use --output instead.")
}
// WithDefaultOutput sets a default output format if one is not provided through a flag value