ExpressionWarning
ExpressionWarning is a warning information that targets a specific expression.
Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/admissionregistration.api.k8s.io/ExpressionWarning_v1.json▶ Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/admissionregistration.api.k8s.io/ExpressionWarning_v1.jsonkubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yamlResource Structure
fieldRefstringRequiredThe path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
warningstringRequiredThe content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.