OS
Schema Hub

RoleRef

RoleRef contains information that points to the role being used

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/rbac.api.k8s.io/RoleRef_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/rbac.api.k8s.io/RoleRef_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

apiGroupstringRequired
APIGroup is the group for the resource being referenced
kindstringRequired
Kind is the type of resource being referenced
namestringRequired
Name is the name of resource being referenced