diff --git a/charts/ocis/ci/values.yaml b/charts/ocis/ci/values.yaml index d2e07c99..c628f6b1 100644 --- a/charts/ocis/ci/values.yaml +++ b/charts/ocis/ci/values.yaml @@ -21,6 +21,10 @@ image: - name: some-pull-secret nodeSelector: kubernetes.io/arch: "amd64" +hostAliases: +- ip: "192.168.4.2" + hostnames: + - "example.kube.owncloud.test" priorityClassName: ocis-middle-priority jobPriorityClassName: ocis-job-middle-priority features: diff --git a/charts/ocis/templates/_common/_tplvalues.tpl b/charts/ocis/templates/_common/_tplvalues.tpl index f0bbba5d..b9ace31c 100644 --- a/charts/ocis/templates/_common/_tplvalues.tpl +++ b/charts/ocis/templates/_common/_tplvalues.tpl @@ -77,8 +77,6 @@ Adds the app names to the scope and set the name of the app based on the input p {{- $_ := set .scope "appSpecificConfig" (index .scope.Values.services (index .scope .appName)) -}} {{- end -}} - {{- $_ := set .scope "priorityClassName" (default (default (dict) .scope.Values.priorityClassName) .scope.appSpecificConfig.priorityClassName) -}} - {{- $_ := set .scope "priorityClassName" (default (default (dict) .scope.Values.priorityClassName) .scope.appSpecificConfig.priorityClassName) -}} {{- $_ := set .scope "jobPriorityClassName" (default (default (dict) .scope.Values.jobPriorityClassName) .scope.appSpecificConfig.jobPriorityClassName) -}} @@ -245,6 +243,16 @@ oCIS serviceAccount settings automountServiceAccountToken: true {{- end -}} +{{/* +oCIS hostAliases settings +*/}} +{{- define "ocis.hostAliases" -}} + {{- with $.Values.hostAliases }} +hostAliases: + {{- toYaml . | nindent 2 }} + {{- end }} +{{- end -}} + {{/* oCIS persistence dataVolumeName */}} diff --git a/charts/ocis/templates/antivirus/deployment.yaml b/charts/ocis/templates/antivirus/deployment.yaml index 01063ab2..3fd68def 100644 --- a/charts/ocis/templates/antivirus/deployment.yaml +++ b/charts/ocis/templates/antivirus/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.antivirus | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/appprovider/deployment.yaml b/charts/ocis/templates/appprovider/deployment.yaml index 6bc695b6..964c111d 100644 --- a/charts/ocis/templates/appprovider/deployment.yaml +++ b/charts/ocis/templates/appprovider/deployment.yaml @@ -17,6 +17,7 @@ spec: {{- include "ocis.affinity" $.Values.services.appprovider | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" $ | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ $.appName }} diff --git a/charts/ocis/templates/appregistry/deployment.yaml b/charts/ocis/templates/appregistry/deployment.yaml index 5397cba3..9c0dabbe 100644 --- a/charts/ocis/templates/appregistry/deployment.yaml +++ b/charts/ocis/templates/appregistry/deployment.yaml @@ -13,6 +13,7 @@ spec: {{- include "ocis.affinity" .Values.services.appregistry | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/audit/deployment.yaml b/charts/ocis/templates/audit/deployment.yaml index a26373c0..970c0783 100644 --- a/charts/ocis/templates/audit/deployment.yaml +++ b/charts/ocis/templates/audit/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.audit | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/authbasic/deployment.yaml b/charts/ocis/templates/authbasic/deployment.yaml index 0566b29a..2c0bec49 100644 --- a/charts/ocis/templates/authbasic/deployment.yaml +++ b/charts/ocis/templates/authbasic/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.authbasic | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/authmachine/deployment.yaml b/charts/ocis/templates/authmachine/deployment.yaml index 8f3e3536..566ee17e 100644 --- a/charts/ocis/templates/authmachine/deployment.yaml +++ b/charts/ocis/templates/authmachine/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.authmachine | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/eventhistory/deployment.yaml b/charts/ocis/templates/eventhistory/deployment.yaml index c7283559..4818d29a 100644 --- a/charts/ocis/templates/eventhistory/deployment.yaml +++ b/charts/ocis/templates/eventhistory/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.eventhistory | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/frontend/deployment.yaml b/charts/ocis/templates/frontend/deployment.yaml index fbfee513..b44bbe4c 100644 --- a/charts/ocis/templates/frontend/deployment.yaml +++ b/charts/ocis/templates/frontend/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.frontend | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/gateway/deployment.yaml b/charts/ocis/templates/gateway/deployment.yaml index 5dd6cd87..6fedbc93 100644 --- a/charts/ocis/templates/gateway/deployment.yaml +++ b/charts/ocis/templates/gateway/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.gateway | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/graph/deployment.yaml b/charts/ocis/templates/graph/deployment.yaml index 17c3939a..428e10a9 100644 --- a/charts/ocis/templates/graph/deployment.yaml +++ b/charts/ocis/templates/graph/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.graph | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/groups/deployment.yaml b/charts/ocis/templates/groups/deployment.yaml index 2aaa5e7f..789faf0f 100644 --- a/charts/ocis/templates/groups/deployment.yaml +++ b/charts/ocis/templates/groups/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.groups | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/idm/deployment.yaml b/charts/ocis/templates/idm/deployment.yaml index fc13adea..caf6da9f 100644 --- a/charts/ocis/templates/idm/deployment.yaml +++ b/charts/ocis/templates/idm/deployment.yaml @@ -35,6 +35,7 @@ spec: - name: {{ include "ocis.persistence.dataVolumeName" . }} mountPath: /var/lib/ocis {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/idp/deployment.yaml b/charts/ocis/templates/idp/deployment.yaml index 1bd5d1fc..337b028c 100644 --- a/charts/ocis/templates/idp/deployment.yaml +++ b/charts/ocis/templates/idp/deployment.yaml @@ -17,6 +17,7 @@ spec: {{- include "ocis.affinity" .Values.services.idp | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/nats/deployment.yaml b/charts/ocis/templates/nats/deployment.yaml index df3d1a1b..f81244f1 100644 --- a/charts/ocis/templates/nats/deployment.yaml +++ b/charts/ocis/templates/nats/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/notifications/deployment.yaml b/charts/ocis/templates/notifications/deployment.yaml index 8ae3bbcd..0c07946c 100644 --- a/charts/ocis/templates/notifications/deployment.yaml +++ b/charts/ocis/templates/notifications/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.notifications | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/ocdav/deployment.yaml b/charts/ocis/templates/ocdav/deployment.yaml index fef7ed84..c13151e2 100644 --- a/charts/ocis/templates/ocdav/deployment.yaml +++ b/charts/ocis/templates/ocdav/deployment.yaml @@ -15,7 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.ocdav | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} - hostAliases: {{ toYaml $.hostAliases | nindent 8 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/ocs/deployment.yaml b/charts/ocis/templates/ocs/deployment.yaml index ffeac6b8..dd9c69cf 100644 --- a/charts/ocis/templates/ocs/deployment.yaml +++ b/charts/ocis/templates/ocs/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.ocs | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/policies/deployment.yaml b/charts/ocis/templates/policies/deployment.yaml index 0d621c9f..9934ee01 100644 --- a/charts/ocis/templates/policies/deployment.yaml +++ b/charts/ocis/templates/policies/deployment.yaml @@ -26,6 +26,7 @@ spec: {{- tpl . $ | nindent 8 }} {{- end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/postprocessing/deployment.yaml b/charts/ocis/templates/postprocessing/deployment.yaml index 8c9dca3d..190bc0aa 100644 --- a/charts/ocis/templates/postprocessing/deployment.yaml +++ b/charts/ocis/templates/postprocessing/deployment.yaml @@ -18,6 +18,7 @@ spec: {{- include "ocis.affinity" .Values.services.postprocessing | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/proxy/deployment.yaml b/charts/ocis/templates/proxy/deployment.yaml index 13bd61cf..7fcf52a3 100644 --- a/charts/ocis/templates/proxy/deployment.yaml +++ b/charts/ocis/templates/proxy/deployment.yaml @@ -15,7 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.proxy | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} - hostAliases: {{ toYaml $.hostAliases | nindent 8 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/search/deployment.yaml b/charts/ocis/templates/search/deployment.yaml index 84704565..17c941c1 100644 --- a/charts/ocis/templates/search/deployment.yaml +++ b/charts/ocis/templates/search/deployment.yaml @@ -26,6 +26,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/settings/deployment.yaml b/charts/ocis/templates/settings/deployment.yaml index 7c6b58a8..3558668a 100644 --- a/charts/ocis/templates/settings/deployment.yaml +++ b/charts/ocis/templates/settings/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.settings | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/sharing/deployment.yaml b/charts/ocis/templates/sharing/deployment.yaml index 3734109a..def3bec6 100644 --- a/charts/ocis/templates/sharing/deployment.yaml +++ b/charts/ocis/templates/sharing/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.sharing | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storagepubliclink/deployment.yaml b/charts/ocis/templates/storagepubliclink/deployment.yaml index 60fa0046..aecc83d9 100644 --- a/charts/ocis/templates/storagepubliclink/deployment.yaml +++ b/charts/ocis/templates/storagepubliclink/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.storagepubliclink | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storageshares/deployment.yaml b/charts/ocis/templates/storageshares/deployment.yaml index fab38f7d..0a68b439 100644 --- a/charts/ocis/templates/storageshares/deployment.yaml +++ b/charts/ocis/templates/storageshares/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.storageshares | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storagesystem/deployment.yaml b/charts/ocis/templates/storagesystem/deployment.yaml index 8ecae47a..e32d7abc 100644 --- a/charts/ocis/templates/storagesystem/deployment.yaml +++ b/charts/ocis/templates/storagesystem/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storageusers/deployment.yaml b/charts/ocis/templates/storageusers/deployment.yaml index ba4d661d..ae9611b9 100644 --- a/charts/ocis/templates/storageusers/deployment.yaml +++ b/charts/ocis/templates/storageusers/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/storageusers/jobs.yaml b/charts/ocis/templates/storageusers/jobs.yaml index 48ae4c3d..832569e9 100644 --- a/charts/ocis/templates/storageusers/jobs.yaml +++ b/charts/ocis/templates/storageusers/jobs.yaml @@ -25,6 +25,7 @@ spec: {{- include "ocis.serviceAccount" . | nindent 10 }} restartPolicy: Never {{- include "ocis.priorityClassName" $.jobPriorityClassName | nindent 10 }} + {{- include "ocis.hostAliases" $ | nindent 10 }} nodeSelector: {{ toYaml $.jobNodeSelector | nindent 12 }} containers: - name: storage-users-clean-expired-uploads @@ -135,6 +136,7 @@ spec: spec: {{- include "ocis.serviceAccount" . | nindent 10 }} restartPolicy: Never + {{- include "ocis.hostAliases" $ | nindent 10 }} nodeSelector: {{ toYaml $.jobNodeSelector | nindent 12 }} containers: - name: storage-users-purge-expired-trash-bin-items diff --git a/charts/ocis/templates/store/deployment.yaml b/charts/ocis/templates/store/deployment.yaml index 86aff927..45e0d764 100644 --- a/charts/ocis/templates/store/deployment.yaml +++ b/charts/ocis/templates/store/deployment.yaml @@ -26,6 +26,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/thumbnails/deployment.yaml b/charts/ocis/templates/thumbnails/deployment.yaml index 2d73cce0..5aec922f 100644 --- a/charts/ocis/templates/thumbnails/deployment.yaml +++ b/charts/ocis/templates/thumbnails/deployment.yaml @@ -27,6 +27,7 @@ spec: mountPath: /var/lib/ocis {{ end }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/thumbnails/jobs.yaml b/charts/ocis/templates/thumbnails/jobs.yaml index 4afd703d..0cbc3a8b 100644 --- a/charts/ocis/templates/thumbnails/jobs.yaml +++ b/charts/ocis/templates/thumbnails/jobs.yaml @@ -28,6 +28,7 @@ spec: {{- include "ocis.serviceAccount" . | nindent 10 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 10 }} {{- include "ocis.priorityClassName" $.jobPriorityClassName | nindent 10 }} + {{- include "ocis.hostAliases" $ | nindent 10 }} nodeSelector: {{ toYaml $.jobNodeSelector | nindent 12 }} containers: - name: thumbnails-cleanup diff --git a/charts/ocis/templates/userlog/deployment.yaml b/charts/ocis/templates/userlog/deployment.yaml index 3bce3e2b..e9074b23 100644 --- a/charts/ocis/templates/userlog/deployment.yaml +++ b/charts/ocis/templates/userlog/deployment.yaml @@ -16,6 +16,7 @@ spec: {{- include "ocis.affinity" .Values.services.userlog | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/users/deployment.yaml b/charts/ocis/templates/users/deployment.yaml index 79e7a9ed..4e9e3f76 100644 --- a/charts/ocis/templates/users/deployment.yaml +++ b/charts/ocis/templates/users/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.users | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/web/deployment.yaml b/charts/ocis/templates/web/deployment.yaml index c8576c3f..1a2c8d4f 100644 --- a/charts/ocis/templates/web/deployment.yaml +++ b/charts/ocis/templates/web/deployment.yaml @@ -15,6 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.web | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }} diff --git a/charts/ocis/templates/webdav/deployment.yaml b/charts/ocis/templates/webdav/deployment.yaml index 0d9a89cc..91f72a97 100644 --- a/charts/ocis/templates/webdav/deployment.yaml +++ b/charts/ocis/templates/webdav/deployment.yaml @@ -15,7 +15,7 @@ spec: {{- include "ocis.affinity" .Values.services.webdav | nindent 6 }} {{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} {{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} - hostAliases: {{ toYaml $.hostAliases | nindent 8 }} + {{- include "ocis.hostAliases" $ | nindent 6 }} nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} containers: - name: {{ .appName }}