Skip to content

Commit 120bcd7

Browse files
authored
Merge pull request kubernetes#73787 from soltysh/deprecate_export
Deprecate --export flag from get command
2 parents f5f42df + 3f3316b commit 120bcd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kubectl/cmd/get/get.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ func NewCmdGet(parent string, f cmdutil.Factory, streams genericclioptions.IOStr
178178
addOpenAPIPrintColumnFlags(cmd, o)
179179
addServerPrintColumnFlags(cmd, o)
180180
cmd.Flags().BoolVar(&o.Export, "export", o.Export, "If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.")
181+
cmd.Flags().MarkDeprecated("export", "This flag is deprecated and will be removed in future.")
181182
cmdutil.AddFilenameOptionFlags(cmd, &o.FilenameOptions, "identifying the resource to get from a server.")
182183
return cmd
183184
}

0 commit comments

Comments
 (0)