mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #130238 from soltysh/subresource_stable
Update kubetl subresource to stable
This commit is contained in:
commit
717d9f13f3
@ -539,7 +539,7 @@ func AddPruningFlags(cmd *cobra.Command, prune *bool, pruneAllowlist *[]string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func AddSubresourceFlags(cmd *cobra.Command, subresource *string, usage string) {
|
func AddSubresourceFlags(cmd *cobra.Command, subresource *string, usage string) {
|
||||||
cmd.Flags().StringVar(subresource, "subresource", "", fmt.Sprintf("%s This flag is beta and may change in the future.", usage))
|
cmd.Flags().StringVar(subresource, "subresource", "", usage)
|
||||||
CheckErr(cmd.RegisterFlagCompletionFunc("subresource", func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) {
|
CheckErr(cmd.RegisterFlagCompletionFunc("subresource", func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) {
|
||||||
var commonSubresources = []string{"status", "scale", "resize"}
|
var commonSubresources = []string{"status", "scale", "resize"}
|
||||||
return commonSubresources, cobra.ShellCompDirectiveNoFileComp
|
return commonSubresources, cobra.ShellCompDirectiveNoFileComp
|
||||||
|
Loading…
Reference in New Issue
Block a user