Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-1565

SDNC oom deploy fails if nodeSelector is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • Istanbul Release
    • 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 }}
      

            s4fujii s4fujii
            s4fujii s4fujii
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: