-
Bug
-
Resolution: Done
-
Low
-
Guilin Release
-
None
-
None
If nodeSelector is set in values.yaml / override.yaml
nodeSelector: test: label1
OOM deployment fails with the following error:
Error: YAML parse error on sdnc/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 421: did not find expected '-' indicator Error: release: "dev-sdnc" not found
in statefulsets.yaml, there is an indentation error. nodeSelector and affinity block must be the same level as containers block.
380 resources: 381 {{ include "common.resources" . | indent 12 }} 382 {{- if .Values.nodeSelector }} 383 nodeSelector: 384 {{ toYaml .Values.nodeSelector | indent 10 }} 385 {{- end -}} 386 {{- if .Values.affinity }} 387 affinity: 388 {{ toYaml .Values.affinity | indent 10 }} 389 {{- end }}