OS
Schema Hub

TypedLocalObjectReference

TypedLocalObjectReference allows to reference typed object inside the same namespace.

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

Resource Structure

apiGroupstring
APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain.
kindstringRequired
Kind is the type of resource being referenced. It must be a path segment name.
namestringRequired
Name is the name of resource being referenced. It must be a path segment name.