clarify RBAC API documentation

(Resource|Verb)All are meaningless in the context of openapi spec. I saw
ResourceAll used in an RBAC policy.

Change-Id: I8ab5f230bed23be902f77cadee3fbcdec6b24064
This commit is contained in:
Mike Danese
2021-03-31 17:01:48 -07:00
parent a651804427
commit 724e760721
11 changed files with 21 additions and 21 deletions

View File

@@ -43,7 +43,7 @@ const (
// PolicyRule holds information that describes a policy rule, but does not contain information
// about who the rule applies to or which namespace the rule applies to.
type PolicyRule struct {
// Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
// Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. '*' represents all verbs.
Verbs []string
// APIGroups is the name of the APIGroup that contains the resources.