Skip to content

Commit

Permalink
chore: add common.waitRedisInitContainer to resources
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes committed Oct 9, 2024
1 parent ee8fa99 commit d410887
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ spec:
{{- include "common.addCertInitContainer" . | nindent 8 }}
{{- include "common.waitPostgresqlInitContainer" . | nindent 8 }}
{{- include "common.waitInitMigrationsInitContainer" . | nindent 8}}
{{- include "common.waitRedisInitContainer" . | nindent 8 }}
volumes:
- name: volume-wait-init-migrations
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ spec:
{{- toYaml .Values.schedulerWorker.resources | nindent 12 }}
initContainers:
{{- include "common.addCertInitContainer" . | nindent 8 }}
{{- include "common.waitRedisInitContainer" . | nindent 8 }}
volumes:
{{- if .Values.privateCa.enabled }}
- name: ssl-certs
Expand Down
2 changes: 2 additions & 0 deletions charts/substra-backend/templates/deployment-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ spec:
{{ end }}
resources:
{{- toYaml .Values.scheduler.resources | nindent 12 }}
initContainers:
{{- include "common.waitRedisInitContainer" . | nindent 8 }}
volumes:
- name: runtime-db
emptyDir: {}
Expand Down
1 change: 1 addition & 0 deletions charts/substra-backend/templates/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ spec:
- name: DJANGO_SETTINGS_MODULE
value: backend.settings.{{ .Values.settings }}
{{- include "common.waitMinIOContainer" . | nindent 6 }}
{{- include "common.waitRedisInitContainer" . | nindent 6 }}
volumes:
- name: data-servermedias
persistentVolumeClaim:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ spec:
{{- include "common.addCertInitContainer" . | nindent 8 }}
{{- include "common.waitPostgresqlInitContainer" . | nindent 8 }}
{{- include "common.waitInitMigrationsInitContainer" . | nindent 8}}
{{- include "common.waitRedisInitContainer" . | nindent 8 }}
volumes:
- name: volume-wait-init-migrations
configMap:
Expand Down
3 changes: 3 additions & 0 deletions charts/substra-backend/templates/statefulset-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spec:
serviceAccountName: {{ template "substra.fullname" . }}-builder
initContainers:
{{- include "common.waitPostgresqlInitContainer" . | nindent 6 }}
{{- include "common.waitRedisInitContainer" . | nindent 6 }}
{{- if .Values.privateCa.enabled }}
- name: add-cert
image: {{ include "common.images.name" .Values.privateCa.image }}
Expand Down Expand Up @@ -201,6 +202,8 @@ spec:
value: {{ toYaml .Values.builder.kanikoStartup.checkDelay | quote }}
- name: IMAGE_BUILD_TIMEOUT
value: {{ toYaml .Values.builder.timeout | quote }}
- name: IMAGE_SAVING_TIMEOUT_SECONDS
value: {{ .Values.builder.saveImageTimeoutSeconds | quote }}
ports:
- name: http
containerPort: 8000
Expand Down

0 comments on commit d410887

Please sign in to comment.