Skip to content

Commit

Permalink
Add nodeSelectors to deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mieszko96 committed Mar 18, 2022
1 parent 690b1b1 commit dd97dd1
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
app: {{ template "activemq.fullname" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
containers:
- name: activemq
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
app: {{ template "alfresco-insight-zeppelin.fullName" . }}
release: {{ .Release.Name }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
- name: {{ .Values.global.alfrescoRegistryPullSecrets }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
checksum/config: {{ include (print $.Template.BasePath "/config-syncservice.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret-database.yaml") . | sha256sum }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
imagePullSecrets:
- name: {{ .Values.global.alfrescoRegistryPullSecrets }}
initContainers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
labels:
{{- include "ai-transformer.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
labels:
{{- include "filestore.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
{{- include "imagemagick.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
{{- include "libreoffice.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
labels:
{{- include "ms-teams-service.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
labels:
{{- include "ooi-service.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
{{- include "pdfrenderer.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
labels:
{{- include "repository.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
labels:
{{- include "share.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions helm/alfresco-content-services/templates/deployment-tika.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
{{- include "tika.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
labels:
{{- include "transform-misc.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.global.alfrescoRegistryPullSecrets }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
{{- include "transform-router.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
# only set this secret if a private docker registry variable is defined
imagePullSecrets:
- name: {{ .Values.global.alfrescoRegistryPullSecrets }}
Expand Down

0 comments on commit dd97dd1

Please sign in to comment.