diff --git a/helm-chart/templates/04-hub-deployment.yaml b/helm-chart/templates/04-hub-deployment.yaml index 311ce22b9..e0c0a0609 100644 --- a/helm-chart/templates/04-hub-deployment.yaml +++ b/helm-chart/templates/04-hub-deployment.yaml @@ -58,12 +58,6 @@ spec: image: '{{ .Values.tap.docker.registry }}/hub:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}' {{- end }} imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }} - {{- if .Values.tap.docker.imagePullSecrets }} - imagePullSecrets: - {{- range .Values.tap.docker.imagePullSecrets }} - - name: {{ . }} - {{- end }} - {{- end }} readinessProbe: periodSeconds: {{ .Values.tap.probes.hub.periodSeconds }} failureThreshold: {{ .Values.tap.probes.hub.failureThreshold }} @@ -97,6 +91,12 @@ spec: - name: saml-x509-volume mountPath: "/etc/saml/x509" readOnly: true + {{- if .Values.tap.docker.imagePullSecrets }} + imagePullSecrets: + {{- range .Values.tap.docker.imagePullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} {{- if gt (len .Values.tap.nodeSelectorTerms.hub) 0}} affinity: nodeAffinity: diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index d3f885dc2..c7ce3532b 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -74,12 +74,6 @@ spec: image: '{{ .Values.tap.docker.registry }}/front:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}' {{- end }} imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }} - {{- if .Values.tap.docker.imagePullSecrets }} - imagePullSecrets: - {{- range .Values.tap.docker.imagePullSecrets }} - - name: {{ . }} - {{- end }} - {{- end }} name: kubeshark-front livenessProbe: periodSeconds: 1 @@ -108,6 +102,12 @@ spec: mountPath: /etc/nginx/conf.d/default.conf subPath: default.conf readOnly: true + {{- if .Values.tap.docker.imagePullSecrets }} + imagePullSecrets: + {{- range .Values.tap.docker.imagePullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} {{- if gt (len .Values.tap.nodeSelectorTerms.front) 0}} affinity: nodeAffinity: diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index eeef3e7ab..c8be6e702 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -210,12 +210,6 @@ spec: image: '{{ .Values.tap.docker.registry }}/worker:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}{{ include "kubeshark.dockerTagDebugVersion" . }}' {{- end }} imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }} - {{- if .Values.tap.docker.imagePullSecrets }} - imagePullSecrets: - {{- range .Values.tap.docker.imagePullSecrets }} - - name: {{ . }} - {{- end }} - {{- end }} name: tracer env: - name: POD_NAME @@ -286,6 +280,12 @@ spec: - effect: NoSchedule operator: Exists {{- end }} + {{- if .Values.tap.docker.imagePullSecrets }} + imagePullSecrets: + {{- range .Values.tap.docker.imagePullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} {{- if gt (len .Values.tap.nodeSelectorTerms.workers) 0}} affinity: nodeAffinity: