Revert to using string for minAvailable, maxUnavailable.
Fix the schema to only accept either minAvailable only, maxUnavailable only, or neither (XOR).
$ helm lint ./charts/kubewarden-defaults --values myvalues.yaml
==> Linting ./charts/kubewarden-defaults
[ERROR] values.yaml: - policyServer: Must validate at least one schema (anyOf)
- policyServer: Must validate one and only one schema (oneOf)
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
kubewarden-defaults:
- policyServer: Must validate at least one schema (anyOf)
- policyServer: Must validate one and only one schema (oneOf)
Error: 1 chart(s) linted, 1 chart(s) failed
Yet notice there's no pretty error.
Additional Information
This change is backwards compatible with released charts.
Description
Relates to https://github.com/kubewarden/helm-charts/pull/505
Revert to using string for
minAvailable, maxUnavailable
. Fix the schema to only accept eitherminAvailable
only,maxUnavailable
only, or neither (XOR).Test
Tested by consuming the following values:
Which results on:
Yet notice there's no pretty error.
Additional Information
This change is backwards compatible with released charts.
Tradeoff
Potential improvement