Closed acuntex closed 3 months ago
controllers.pod.affinity
is indeed not a valid option as the values validation indicates. What you are (probably) looking for is something like controllers.my_controller.pod.affinity
:
controllers:
my_controller: # <-- this can of course be anything that you wish to use as the identifier for your controller
pod:
affinity:
...
Let me know if that doesn't work for you
Shame on me, I was assuming the object "my_controller" was the pod-object type. Thanks!
Details
What steps did you take and what happened:
Certain pod options like
imagePullSecrets
,affinity
,topologySpreadConstraints
etc. cannot be set under individual pods. They can only be set in thedefaultPodOptions
. If you set them under the pod, you get the error message:Since there are test, that tests the override of these options, I guess it was intended to work, but somehow the validation does not work as intended. https://github.com/bjw-s/helm-charts/blob/20ca6c5003f6ef9302d3659bdfc6ef55cb955730/charts/library/common-test/tests/pod/field_topologySpreadConstraints_test.yaml#L43
What did you expect to happen:
Pod options like
imagePullSecrets
,affinity
,topologySpreadConstraints
etc. should not throw a validation error if they are used under an individual pod.Anything else you would like to add:
Additional Information: