ResourceAttributes

io.k8s.api.authorization.v1.ResourceAttributes source ↗

ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface

fieldSelectorFieldSelectorAttributesfieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.
rawSelectorstringrawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
requirements[]FieldSelectorRequirementrequirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.
keystring requiredkey is the field selector key that the requirement applies to.
operatorstring requiredoperator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
values[]stringvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.
groupstringgroup is the API Group of the Resource. "*" means all.
labelSelectorLabelSelectorAttributeslabelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.
rawSelectorstringrawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
requirements[]LabelSelectorRequirementrequirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.
keystring requiredkey is the label key that the selector applies to.
operatorstring requiredoperator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
values[]stringvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
namestringname is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
namespacestringnamespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
resourcestringresource is one of the existing resource types. "*" means all.
subresourcestringsubresource is one of the existing resource types. "" means none.
verbstringverb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.
versionstringversion is the API Version of the Resource. "*" means all.