Skip to content

Commit b969613

Browse files
authored
Merge pull request kubernetes#88655 from soltysh/deprecate_generator
Deprecate --generator flag from kubectl create commands
2 parents 481b04c + be6ac85 commit b969613

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ func AddApplyAnnotationVarFlags(cmd *cobra.Command, applyAnnotation *bool) {
452452
// TODO: need to take a pass at other generator commands to use this set of flags
453453
func AddGeneratorFlags(cmd *cobra.Command, defaultGenerator string) {
454454
cmd.Flags().String("generator", defaultGenerator, "The name of the API generator to use.")
455+
cmd.Flags().MarkDeprecated("generator", "has no effect and will be removed in the future.")
455456
AddDryRunFlag(cmd)
456457
}
457458

0 commit comments

Comments
 (0)