OS
Schema Hub

CrossVersionObjectReference

CrossVersionObjectReference contains enough information to let you identify the referred resource.

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

Resource Structure

apiVersionstring
apiVersion is the API version of the referent
kindstringRequired
kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
namestringRequired
name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Version Diff

Compare: