mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-06-08 16:23:21 -04:00
Merge pull request #138671 from Suknna/deprecate-run-filename
kubectl: deprecate run filename flag Kubernetes-commit: 5a6063f68c14eadd6b4fcc7531aff795f511f996
This commit is contained in:
commit
85cecabd9c
1 changed files with 3 additions and 0 deletions
|
|
@ -178,6 +178,9 @@ func NewCmdRun(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Com
|
|||
o.PrintFlags.AddFlags(cmd)
|
||||
o.RecordFlags.AddFlags(cmd)
|
||||
|
||||
_ = cmd.Flags().MarkDeprecated("filename", "it is ignored by kubectl run and will be removed in a future release")
|
||||
_ = cmd.Flags().MarkShorthandDeprecated("filename", "it is ignored by kubectl run and will be removed in a future release")
|
||||
|
||||
addRunFlags(cmd, o)
|
||||
cmdutil.AddApplyAnnotationFlags(cmd)
|
||||
cmdutil.AddPodRunningTimeoutFlag(cmd, defaultPodAttachTimeout)
|
||||
|
|
|
|||
Loading…
Reference in a new issue