Add webhookmatchcondition doc comment
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com> Co-authored-by: Jordan Liggitt <jordan@liggitt.net> Kubernetes-commit: 151599d47a9b866a7d7b8dffc5714557817bbcf2
This commit is contained in:
parent
be81d72259
commit
882c7896e7
|
@ -401,6 +401,13 @@ type WebhookMatchCondition struct {
|
|||
// 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.
|
||||
//
|
||||
// - '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/
|
||||
Expression string
|
||||
}
|
||||
|
|
|
@ -164,6 +164,13 @@ type WebhookMatchCondition struct {
|
|||
// 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.
|
||||
//
|
||||
// - '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/
|
||||
Expression string `json:"expression"`
|
||||
}
|
||||
|
|
|
@ -615,6 +615,13 @@ type WebhookMatchCondition struct {
|
|||
// 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.
|
||||
//
|
||||
// - '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/
|
||||
Expression string `json:"expression"`
|
||||
}
|
||||
|
|
|
@ -586,6 +586,13 @@ type WebhookMatchCondition struct {
|
|||
// 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.
|
||||
//
|
||||
// - '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/
|
||||
Expression string `json:"expression"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue