You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The values.schema.json defined the validate values for controller.strategyhere
However, this key also has been used for daemonsets. Deamonsets have different restrictions for that value.
$ k explain daemonset.spec.updateStrategy.type
KIND: DaemonSet
VERSION: apps/v1
FIELD: type <string>
DESCRIPTION:
Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is
RollingUpdate.
We will get the error bellow when we set the type to OnDelete.
$ helm template --set 'controller.strategy.type=OnDelete' --set 'controller.kind=daemonset' deployments/helm-chart
Error: values don't meet the specifications of the schema(s) in the following chart(s):
nginx-ingress:
- controller.strategy.type: controller.strategy.type must be one of the following: "Recreate", "RollingUpdate"
- controller.strategy: Must validate all the schemas (allOf)