Chart fails when alpha antiAffinity is set to hard

Moved from GitHub charts/19

Posted by bcorijn:

Hi all,

When trying to deploy the chart with the alpha antiAffinity set to hard, I get the following error:
Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(StatefulSet.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution): invalid type for io.k8s.api.core.v1.PodAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution: got "map", expected "array"
Setting it to soft works perfectly fine, so I assume it’s just a syntax issue. Setting it to hard on the zeros also works fine.

I discovered this when searching for helm charts. Assigning this to myself. This may be related to other existing bugs in the helm chart.