mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #128554 from ritazh/webhookmatchcondition-doc-comment
Add WebhookMatchCondition doc comment
This commit is contained in:
commit
7a1f8aaa52
@ -401,6 +401,13 @@ type WebhookMatchCondition struct {
|
|||||||
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
||||||
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
||||||
//
|
//
|
||||||
|
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
|
||||||
|
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
|
||||||
|
// - 'user' is the user to test for. e.g. request.user == 'alice'
|
||||||
|
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
|
||||||
|
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
|
||||||
|
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
|
||||||
|
//
|
||||||
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
||||||
Expression string
|
Expression string
|
||||||
}
|
}
|
||||||
|
@ -164,6 +164,13 @@ type WebhookMatchCondition struct {
|
|||||||
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
||||||
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
||||||
//
|
//
|
||||||
|
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
|
||||||
|
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
|
||||||
|
// - 'user' is the user to test for. e.g. request.user == 'alice'
|
||||||
|
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
|
||||||
|
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
|
||||||
|
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
|
||||||
|
//
|
||||||
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
||||||
Expression string `json:"expression"`
|
Expression string `json:"expression"`
|
||||||
}
|
}
|
||||||
|
@ -615,6 +615,13 @@ type WebhookMatchCondition struct {
|
|||||||
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
||||||
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
||||||
//
|
//
|
||||||
|
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
|
||||||
|
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
|
||||||
|
// - 'user' is the user to test for. e.g. request.user == 'alice'
|
||||||
|
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
|
||||||
|
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
|
||||||
|
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
|
||||||
|
//
|
||||||
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
||||||
Expression string `json:"expression"`
|
Expression string `json:"expression"`
|
||||||
}
|
}
|
||||||
|
@ -586,6 +586,13 @@ type WebhookMatchCondition struct {
|
|||||||
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
// If version specified by subjectAccessReviewVersion in the request variable is v1beta1,
|
||||||
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
// the contents would be converted to the v1 version before evaluating the CEL expression.
|
||||||
//
|
//
|
||||||
|
// - 'resourceAttributes' describes information for a resource access request and is unset for non-resource requests. e.g. has(request.resourceAttributes) && request.resourceAttributes.namespace == 'default'
|
||||||
|
// - 'nonResourceAttributes' describes information for a non-resource access request and is unset for resource requests. e.g. has(request.nonResourceAttributes) && request.nonResourceAttributes.path == '/healthz'.
|
||||||
|
// - 'user' is the user to test for. e.g. request.user == 'alice'
|
||||||
|
// - 'groups' is the groups to test for. e.g. ('group1' in request.groups)
|
||||||
|
// - 'extra' corresponds to the user.Info.GetExtra() method from the authenticator.
|
||||||
|
// - 'uid' is the information about the requesting user. e.g. request.uid == '1'
|
||||||
|
//
|
||||||
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
// Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
||||||
Expression string `json:"expression"`
|
Expression string `json:"expression"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user