mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-08 17:15:36 +00:00
Update comment on ResourcePolicyRule
Track the long-ago addition of the ClusterScope field.
This commit is contained in:
@@ -241,8 +241,10 @@ type ServiceAccountSubject struct {
|
|||||||
// ResourcePolicyRule matches a resource request if and only if: (a)
|
// ResourcePolicyRule matches a resource request if and only if: (a)
|
||||||
// at least one member of verbs matches the request, (b) at least one
|
// at least one member of verbs matches the request, (b) at least one
|
||||||
// member of apiGroups matches the request, (c) at least one member of
|
// member of apiGroups matches the request, (c) at least one member of
|
||||||
// resources matches the request, and (d) least one member of
|
// resources matches the request, and (d) either (d1) the request does
|
||||||
// namespaces matches the request.
|
// not specify a namespace (i.e., `Namespace==""`) and clusterScope is
|
||||||
|
// true or (d2) the request specifies a namespace and least one member
|
||||||
|
// of namespaces matches the request's namespace.
|
||||||
type ResourcePolicyRule struct {
|
type ResourcePolicyRule struct {
|
||||||
// `verbs` is a list of matching verbs and may not be empty.
|
// `verbs` is a list of matching verbs and may not be empty.
|
||||||
// "*" matches all verbs and, if present, must be the only entry.
|
// "*" matches all verbs and, if present, must be the only entry.
|
||||||
|
|||||||
@@ -279,8 +279,10 @@ type ServiceAccountSubject struct {
|
|||||||
// ResourcePolicyRule matches a resource request if and only if: (a)
|
// ResourcePolicyRule matches a resource request if and only if: (a)
|
||||||
// at least one member of verbs matches the request, (b) at least one
|
// at least one member of verbs matches the request, (b) at least one
|
||||||
// member of apiGroups matches the request, (c) at least one member of
|
// member of apiGroups matches the request, (c) at least one member of
|
||||||
// resources matches the request, and (d) least one member of
|
// resources matches the request, and (d) either (d1) the request does
|
||||||
// namespaces matches the request.
|
// not specify a namespace (i.e., `Namespace==""`) and clusterScope is
|
||||||
|
// true or (d2) the request specifies a namespace and least one member
|
||||||
|
// of namespaces matches the request's namespace.
|
||||||
type ResourcePolicyRule struct {
|
type ResourcePolicyRule struct {
|
||||||
// `verbs` is a list of matching verbs and may not be empty.
|
// `verbs` is a list of matching verbs and may not be empty.
|
||||||
// "*" matches all verbs and, if present, must be the only entry.
|
// "*" matches all verbs and, if present, must be the only entry.
|
||||||
|
|||||||
@@ -279,8 +279,10 @@ type ServiceAccountSubject struct {
|
|||||||
// ResourcePolicyRule matches a resource request if and only if: (a)
|
// ResourcePolicyRule matches a resource request if and only if: (a)
|
||||||
// at least one member of verbs matches the request, (b) at least one
|
// at least one member of verbs matches the request, (b) at least one
|
||||||
// member of apiGroups matches the request, (c) at least one member of
|
// member of apiGroups matches the request, (c) at least one member of
|
||||||
// resources matches the request, and (d) least one member of
|
// resources matches the request, and (d) either (d1) the request does
|
||||||
// namespaces matches the request.
|
// not specify a namespace (i.e., `Namespace==""`) and clusterScope is
|
||||||
|
// true or (d2) the request specifies a namespace and least one member
|
||||||
|
// of namespaces matches the request's namespace.
|
||||||
type ResourcePolicyRule struct {
|
type ResourcePolicyRule struct {
|
||||||
// `verbs` is a list of matching verbs and may not be empty.
|
// `verbs` is a list of matching verbs and may not be empty.
|
||||||
// "*" matches all verbs and, if present, must be the only entry.
|
// "*" matches all verbs and, if present, must be the only entry.
|
||||||
|
|||||||
Reference in New Issue
Block a user