ResourceAttributes
ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/authorization.api.k8s.io/ResourceAttributes_v1.json▶ Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/authorization.api.k8s.io/ResourceAttributes_v1.jsonkubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yamlResource Structure
fieldSelectorobjectfieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.
groupstringGroup is the API Group of the Resource. "*" means all.
labelSelectorobjectlabelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.
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.