You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: staging/src/k8s.io/apiserver/pkg/apis/apiserver/types.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -401,6 +401,13 @@ type WebhookMatchCondition struct {
401
401
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
402
402
// the contents would be converted to the v1 version before evaluating the CEL expression.
403
403
//
404
+
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
405
+
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
406
+
// - 'user' is the user to test for. e.g. request.user == 'alice'
407
+
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
408
+
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
409
+
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
410
+
//
404
411
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
Copy file name to clipboardExpand all lines: staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/types.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,13 @@ type WebhookMatchCondition struct {
164
164
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
165
165
// the contents would be converted to the v1 version before evaluating the CEL expression.
166
166
//
167
+
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
168
+
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
169
+
// - 'user' is the user to test for. e.g. request.user == 'alice'
170
+
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
171
+
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
172
+
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
173
+
//
167
174
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
Copy file name to clipboardExpand all lines: staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/types.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -615,6 +615,13 @@ type WebhookMatchCondition struct {
615
615
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
616
616
// the contents would be converted to the v1 version before evaluating the CEL expression.
617
617
//
618
+
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
619
+
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
620
+
// - 'user' is the user to test for. e.g. request.user == 'alice'
621
+
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
622
+
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
623
+
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
624
+
//
618
625
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
Copy file name to clipboardExpand all lines: staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/types.go
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -586,6 +586,13 @@ type WebhookMatchCondition struct {
586
586
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
587
587
// the contents would be converted to the v1 version before evaluating the CEL expression.
588
588
//
589
+
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
590
+
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
591
+
// - 'user' is the user to test for. e.g. request.user == 'alice'
592
+
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
593
+
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
594
+
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
595
+
//
589
596
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
0 commit comments