Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Job
metadata:
# We truncate the organization id to keep within 52 characters for the name. We add the full id in the annotations.
name: "{{ include "controlplane.fullname" . }}-activate-org-{{ trunc 8 .Values.jobs.activateOrganization.id }}"
labels:
labels:
{{- include "controlplane.job.labels" (dict "additionalLabels" .Values.jobs.activateOrganization.additionalLabels "context" .) | nindent 4 }}
annotations:
organization-id: {{ .Values.jobs.activateOrganization.id }}
Expand All @@ -31,6 +31,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: activate-organization
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: cleanup-old-data
securityContext:
Expand Down Expand Up @@ -60,4 +61,4 @@ spec:
{{- end }}
args:
- "/app/dist/bin/cleanup-old-data.js"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: seed
securityContext:
Expand All @@ -49,4 +50,4 @@ spec:
key: clickhouseMigrationDsn
args:
- "/app/dist/bin/ch-migrate.js"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: seed
securityContext:
Expand Down Expand Up @@ -64,4 +65,4 @@ spec:
key: databaseTlsKey
{{- end }}
args:
- "/app/dist/bin/db-migrate.js"
- "/app/dist/bin/db-migrate.js"
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: deactivate-organization
securityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: delete-inactive-orgs
securityContext:
Expand Down Expand Up @@ -130,4 +131,4 @@ spec:
key: keycloakClientId
args:
- "/app/dist/bin/delete-inactive-orgs.js"
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion helm/cosmo/charts/controlplane/templates/delete-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: delete-user
securityContext:
Expand Down Expand Up @@ -82,4 +83,4 @@ spec:
value: "{{ .Values.jobs.deleteUser.email }}"
args:
- "/app/dist/bin/delete-user.js"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "controlplane.serviceAccountName" . }}
containers:
- name: seed
securityContext:
Expand Down Expand Up @@ -111,4 +112,4 @@ spec:
value: "{{ .Values.global.seed.organizationSlug }}"
args:
- "/app/dist/bin/seed.js"
{{- end }}
{{- end }}
Loading