Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl explain #250

Open
chitoku-k opened this issue Oct 30, 2024 · 0 comments
Open

kubectl explain #250

chitoku-k opened this issue Oct 30, 2024 · 0 comments
Labels
command:kubectl Something about kubectl

Comments

@chitoku-k
Copy link
Owner

Command name

kubectl

Completion context

kubectl explain --api-version=**<TAB>
kubectl explain --api-version=apps/v1 **<TAB>

What happens now?

The list of files or nothing is completed.

What do you expect to complete?

For API versions, all of:

$ kubectl get --raw /api | jq -r '.versions | sort[]'
v1
$ kubectl get --raw /apis | jq -r '[.groups[].versions[].groupVersion] | sort[]'
admissionregistration.k8s.io/v1
apiextensions.k8s.io/v1
apiregistration.k8s.io/v1
apps/v1
authentication.k8s.io/v1
authorization.k8s.io/v1
autoscaling/v1
autoscaling/v2
batch/v1
certificates.k8s.io/v1
coordination.k8s.io/v1
discovery.k8s.io/v1
events.k8s.io/v1
flowcontrol.apiserver.k8s.io/v1
flowcontrol.apiserver.k8s.io/v1beta3
metrics.k8s.io/v1beta1
networking.k8s.io/v1
node.k8s.io/v1
policy/v1
rbac.authorization.k8s.io/v1
scheduling.k8s.io/v1
storage.k8s.io/v1

For types:

$ kubectl api-resources --api-group=apps
NAME                  SHORTNAMES   APIVERSION   NAMESPACED   KIND
controllerrevisions                apps/v1      true         ControllerRevision
daemonsets            ds           apps/v1      true         DaemonSet
deployments           deploy       apps/v1      true         Deployment
replicasets           rs           apps/v1      true         ReplicaSet
statefulsets          sts          apps/v1      true         StatefulSet
@chitoku-k chitoku-k added the command:kubectl Something about kubectl label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:kubectl Something about kubectl
Projects
None yet
Development

No branches or pull requests

1 participant