diff --git a/charts/opencti/templates/server/deployment.yaml b/charts/opencti/templates/server/deployment.yaml index a173f50..2cd65dd 100644 --- a/charts/opencti/templates/server/deployment.yaml +++ b/charts/opencti/templates/server/deployment.yaml @@ -41,7 +41,11 @@ spec: initContainers: {{- range $service := .Values.readyChecker.services }} - name: ready-checker-{{ $service.name }} + {{- if $.Values.global.imageRegistry }} + image: "{{ $.Values.global.imageRegistry }}/busybox:latest" + {{- else }} image: busybox:latest + {{- end }} command: - 'sh' - '-c' diff --git a/charts/opencti/templates/tests/test-connection.yaml b/charts/opencti/templates/tests/test-connection.yaml index 7b3832f..572d621 100644 --- a/charts/opencti/templates/tests/test-connection.yaml +++ b/charts/opencti/templates/tests/test-connection.yaml @@ -10,7 +10,11 @@ metadata: spec: containers: - name: wget + {{- if .Values.global.imageRegistry }} + image: "{{ .Values.global.imageRegistry }}/busybox" + {{- else }} image: busybox + {{- end }} command: ['wget'] args: ['{{ include "opencti.fullname" . }}:{{ .Values.service.targetPort | default .Values.service.port }}'] restartPolicy: Never diff --git a/charts/opencti/templates/worker/deployment.yaml b/charts/opencti/templates/worker/deployment.yaml index 700238c..d120c70 100644 --- a/charts/opencti/templates/worker/deployment.yaml +++ b/charts/opencti/templates/worker/deployment.yaml @@ -41,7 +41,11 @@ spec: {{- if .Values.readyChecker.enabled }} initContainers: - name: ready-checker-server + {{- if $.Values.global.imageRegistry }} + image: "{{ $.Values.global.imageRegistry }}/busybox:latest" + {{- else }} image: busybox:latest + {{- end }} command: - 'sh' - '-c'