Skip to content

Commit 69aa36b

Browse files
committed
Fix rbac; fix wait for in celery
1 parent e419c60 commit 69aa36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/deployment/package-helm/templates/compression-worker-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ spec:
1717
{{- include "clp.labels" . | nindent 8 }}
1818
app.kubernetes.io/component: "compression-worker"
1919
spec:
20+
serviceAccountName: {{ include "clp.fullname" . }}-job-watcher
2021
terminationGracePeriodSeconds: 60
2122
securityContext:
2223
runAsUser: {{ .Values.securityContext.firstParty.uid }}
2324
runAsGroup: {{ .Values.securityContext.firstParty.gid }}
2425
fsGroup: {{ .Values.securityContext.firstParty.gid }}
2526
initContainers:
26-
{{- if eq .Values.clpConfig.compression_scheduler.type "spider" }}
2727
- {{- include "clp.waitFor" (dict
2828
"root" .
2929
"type" "job"
3030
"name" "db-table-creator"
3131
) | nindent 10 }}
32-
{{- else }}
32+
{{- if eq .Values.clpConfig.compression_scheduler.type "celery" }}
3333
- {{- include "clp.waitFor" (dict "root" . "type" "service" "name" "queue") | nindent 10 }}
3434
- {{- include "clp.waitFor" (dict "root" . "type" "service" "name" "redis") | nindent 10 }}
3535
{{- end }}

0 commit comments

Comments
 (0)