OS
Schema Hub

WatchEvent

Event represents a single event to a watched resource.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/meta.api.k8s.io/WatchEvent_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/WatchEvent_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

objectobjectRequired
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.
typestringRequired