Skip to content

Commit

Permalink
feat: add an option to disable mongo init container for Worker service (
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Dec 9, 2024
2 parents e47f484 + 7661ebe commit 9a9bf9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-worker-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-worker-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a9bf9f

Please sign in to comment.