Deprecate --generator flag from kubectl create commands

This commit is contained in:
Maciej Szulik 2020-02-28 11:58:53 +01:00
parent c73532c4f7
commit be6ac856f1
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -452,6 +452,7 @@ func AddApplyAnnotationVarFlags(cmd *cobra.Command, applyAnnotation *bool) {
// TODO: need to take a pass at other generator commands to use this set of flags
func AddGeneratorFlags(cmd *cobra.Command, defaultGenerator string) {
cmd.Flags().String("generator", defaultGenerator, "The name of the API generator to use.")
cmd.Flags().MarkDeprecated("generator", "has no effect and will be removed in the future.")
AddDryRunFlag(cmd)
}