From d285faaf8a3374d7784039a05490b1cc04f9db3b Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Mon, 16 May 2016 08:30:12 +0200 Subject: [PATCH] Include petsets in kubectl valid commands Petsets are already implemented in kubectl, but there were no hints for that subcommand. Fixes #25615 --- pkg/kubectl/cmd/cmd.go | 1 + pkg/kubectl/kubectl.go | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/kubectl/cmd/cmd.go b/pkg/kubectl/cmd/cmd.go index 75b935b881d..c040fcf4844 100644 --- a/pkg/kubectl/cmd/cmd.go +++ b/pkg/kubectl/cmd/cmd.go @@ -164,6 +164,7 @@ __custom_func() { * limitranges (aka 'limits') * nodes (aka 'no') * namespaces (aka 'ns') + * petsets (alpha feature, may be unstable) * pods (aka 'po') * persistentvolumes (aka 'pv') * persistentvolumeclaims (aka 'pvc') diff --git a/pkg/kubectl/kubectl.go b/pkg/kubectl/kubectl.go index 9f5cb22ff8e..20b472383fe 100644 --- a/pkg/kubectl/kubectl.go +++ b/pkg/kubectl/kubectl.go @@ -31,11 +31,11 @@ import ( const ( kubectlAnnotationPrefix = "kubectl.kubernetes.io/" // TODO: auto-generate this - PossibleResourceTypes = `Possible resource types include (case insensitive): pods (po), services (svc), deployments, -replicasets (rs), replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits), -persistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota), namespaces (ns), -serviceaccounts (sa), ingresses (ing), horizontalpodautoscalers (hpa), daemonsets (ds), configmaps, -componentstatuses (cs), endpoints (ep), and secrets.` + PossibleResourceTypes = `Possible resource types include (case insensitive): pods (aka 'po'), services (aka 'svc'), deployments, +replicasets (aka 'rs'), replicationcontrollers (aka 'rc'), nodes (aka 'no'), events (aka 'ev'), limitranges (aka 'limits'), +persistentvolumes (aka 'pv'), persistentvolumeclaims (aka 'pvc'), resourcequotas (aka 'quota'), namespaces (aka 'ns'), +serviceaccounts (aka 'sa'), ingresses (aka 'ing'), horizontalpodautoscalers (aka 'hpa'), daemonsets (aka 'ds'), configmaps, +componentstatuses (aka 'cs), endpoints (aka 'ep'), petsets (alpha feature, may be unstable) and secrets.` ) type NamespaceInfo struct {