Unverified Commit 4ce4bdc8 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #59061 from nikhita/crds-is-a-thing

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add crds as CustomResourceDefinition shortname See https://github.com/kubernetes/apiextensions-apiserver/issues/6#issuecomment-361539766. Fixes kubernetes/apiextensions-apiserver#6 Before: ``` ➜ kubectl get crds the server doesn't have a resource type "crds" ``` After: ``` ➜ kubectl get crds No resources found. ``` **Release note**: ```release-note `crds` is added as a shortname for CustomResourceDefinition i.e. `kubectl get crds` can now be used. ``` /cc sttts deads2k soltysh pwittrock
parents 65c0d55b ba848855
......@@ -62,7 +62,7 @@ var _ rest.ShortNamesProvider = &REST{}
// ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (r *REST) ShortNames() []string {
return []string{"crd"}
return []string{"crd", "crds"}
}
// Delete adds the CRD finalizer to the list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment