GroupVersionForDiscovery
GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.
Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/meta.api.k8s.io/GroupVersionForDiscovery_v1.json▶ Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/meta.api.k8s.io/GroupVersionForDiscovery_v1.jsonkubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yamlResource Structure
groupVersionstringRequiredgroupVersion specifies the API group and version in the form "group/version"
versionstringRequiredversion specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.