mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +00:00
bash_completions: annotate kubectl get with resources which can be 'gotten'
A user types: kubectl get $resource This will cause the bash completions to suggest the possible objects the user can ask for. The complete list right now is: endpoints event limitrange namespace node persistentvolume persistentvolumeclaim pod replicationcontroller resourcequota secret service status But this list should stay up2date as api objects are added or deleted
This commit is contained in:
@@ -175,6 +175,19 @@ _kubectl_get()
|
||||
|
||||
must_have_one_flag=()
|
||||
must_have_one_noun=()
|
||||
must_have_one_noun+=("endpoints")
|
||||
must_have_one_noun+=("event")
|
||||
must_have_one_noun+=("limitrange")
|
||||
must_have_one_noun+=("namespace")
|
||||
must_have_one_noun+=("node")
|
||||
must_have_one_noun+=("persistentvolume")
|
||||
must_have_one_noun+=("persistentvolumeclaim")
|
||||
must_have_one_noun+=("pod")
|
||||
must_have_one_noun+=("replicationcontroller")
|
||||
must_have_one_noun+=("resourcequota")
|
||||
must_have_one_noun+=("secret")
|
||||
must_have_one_noun+=("service")
|
||||
must_have_one_noun+=("status")
|
||||
}
|
||||
|
||||
_kubectl_describe()
|
||||
|
Reference in New Issue
Block a user