mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Add crds as CustomResourceDefinition shortname
This commit is contained in:
parent
9e2878d93c
commit
ba8488559d
@ -62,7 +62,7 @@ var _ rest.ShortNamesProvider = &REST{}
|
|||||||
|
|
||||||
// ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
|
// ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
|
||||||
func (r *REST) ShortNames() []string {
|
func (r *REST) ShortNames() []string {
|
||||||
return []string{"crd"}
|
return []string{"crd", "crds"}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete adds the CRD finalizer to the list
|
// Delete adds the CRD finalizer to the list
|
||||||
|
Loading…
Reference in New Issue
Block a user