mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Add group alias names to discovery in API resources
This commit is contained in:
parent
7bbc615b97
commit
f07bf05f02
@ -740,6 +740,8 @@ type APIResource struct {
|
|||||||
Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"`
|
Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"`
|
||||||
// shortNames is a list of suggested short names of the resource.
|
// shortNames is a list of suggested short names of the resource.
|
||||||
ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"`
|
ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"`
|
||||||
|
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
|
||||||
|
Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verbs masks the value so protobuf can generate
|
// Verbs masks the value so protobuf can generate
|
||||||
|
Loading…
Reference in New Issue
Block a user