Skip to content

Commit

Permalink
test for nodeselector presence
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Baylis <[email protected]>
  • Loading branch information
Michael-Baylis committed May 26, 2022
1 parent d30dacb commit 8dc55bb
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/couchdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
containers:
- name: couchdb
image: {{ .Values.couchdbImage }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/engine-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ spec:
serviceAccountName: galasa
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
containers:
- name: engine-controller
image: {{ .Values.galasaRegistry }}/galasa-boot-embedded-{{ .Values.architecture }}:{{ .Values.galasaVersion }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
containers:
- name: etcd
image: {{ .Values.etcdImage }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
containers:
- name: metrics
image: {{ .Values.galasaRegistry }}/galasa-boot-embedded-{{ .Values.architecture }}:{{ .Values.galasaVersion }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/post-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
restartPolicy: Never
serviceAccountName: galasa
containers:
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/resource-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
containers:
- name: resource-monitor
image: {{ .Values.galasaRegistry }}/galasa-boot-embedded-{{ .Values.architecture }}:{{ .Values.galasaVersion }}
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ spec:
spec:
nodeSelector:
kubernetes.io/arch: {{ .Values.architecture }}
{{- if .Values.nodeSelectors }}
{{ toYaml .Values.nodeSelectors | indent 8 }}
{{- end }}
restartPolicy: Never
serviceAccountName: galasa
containers:
Expand Down

0 comments on commit 8dc55bb

Please sign in to comment.