From 7661ebe30fd05d990af8dd952edd58a5d7d4a96a Mon Sep 17 00:00:00 2001 From: ypoplavs Date: Mon, 9 Dec 2024 13:06:42 +0200 Subject: [PATCH] disable mongo init container for Worker service --- charts/testkube-enterprise/values.yaml | 2 ++ charts/testkube-worker-service/templates/deployment.yaml | 2 ++ charts/testkube-worker-service/values.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/charts/testkube-enterprise/values.yaml b/charts/testkube-enterprise/values.yaml index f80ad8037..262751dec 100644 --- a/charts/testkube-enterprise/values.yaml +++ b/charts/testkube-enterprise/values.yaml @@ -500,6 +500,8 @@ testkube-worker-service: readOnlyRootFilesystem: true # -- Mongo Init Container values init: + # -- Toggle whether to enable the dependency check containers + enabled: false mongo: image: # -- MongoSH image registry diff --git a/charts/testkube-worker-service/templates/deployment.yaml b/charts/testkube-worker-service/templates/deployment.yaml index dc1652a55..19d34be5e 100644 --- a/charts/testkube-worker-service/templates/deployment.yaml +++ b/charts/testkube-worker-service/templates/deployment.yaml @@ -29,6 +29,7 @@ spec: {{- end }} serviceAccountName: {{ include "testkube-worker-service.serviceAccountName" . }} securityContext: {{ include "testkube-worker-service.podSecurityContext" . | nindent 8 }} + {{- if .Values.init.enabled }} initContainers: - name: wait-for-mongo image: {{ include "testkube-worker.init-mongo-image" . }} @@ -51,6 +52,7 @@ spec: {{- else }} value: {{ .Values.global.mongo.dsn | default .Values.api.mongo.dsn }} {{- end }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: {{ include "testkube-worker-service.containerSecurityContext" . | nindent 12 }} diff --git a/charts/testkube-worker-service/values.yaml b/charts/testkube-worker-service/values.yaml index 2bc53494b..435e0628e 100644 --- a/charts/testkube-worker-service/values.yaml +++ b/charts/testkube-worker-service/values.yaml @@ -74,6 +74,8 @@ additionalEnv: {} # -- Mongo Init Container values init: + # -- Toggle whether to enable the dependency check containers + enabled: false mongo: image: # -- MongoSH image registry