diff --git a/helm/cosmo/charts/controlplane/templates/activate-organization.yaml b/helm/cosmo/charts/controlplane/templates/activate-organization.yaml index 53ab28046d..7dac8d0ca9 100644 --- a/helm/cosmo/charts/controlplane/templates/activate-organization.yaml +++ b/helm/cosmo/charts/controlplane/templates/activate-organization.yaml @@ -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 }} @@ -31,6 +31,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: activate-organization securityContext: diff --git a/helm/cosmo/charts/controlplane/templates/cleanup-old-data-cronjob.yaml b/helm/cosmo/charts/controlplane/templates/cleanup-old-data-cronjob.yaml index 70e3e96bc0..eab22c59b8 100644 --- a/helm/cosmo/charts/controlplane/templates/cleanup-old-data-cronjob.yaml +++ b/helm/cosmo/charts/controlplane/templates/cleanup-old-data-cronjob.yaml @@ -25,6 +25,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 12 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: cleanup-old-data securityContext: @@ -60,4 +61,4 @@ spec: {{- end }} args: - "/app/dist/bin/cleanup-old-data.js" -{{- end }} \ No newline at end of file +{{- end }} diff --git a/helm/cosmo/charts/controlplane/templates/clickhouse-migration.yaml b/helm/cosmo/charts/controlplane/templates/clickhouse-migration.yaml index 91531ff1ff..4750706a13 100644 --- a/helm/cosmo/charts/controlplane/templates/clickhouse-migration.yaml +++ b/helm/cosmo/charts/controlplane/templates/clickhouse-migration.yaml @@ -35,6 +35,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: seed securityContext: @@ -49,4 +50,4 @@ spec: key: clickhouseMigrationDsn args: - "/app/dist/bin/ch-migrate.js" -{{- end }} \ No newline at end of file +{{- end }} diff --git a/helm/cosmo/charts/controlplane/templates/database-migration.yaml b/helm/cosmo/charts/controlplane/templates/database-migration.yaml index 90373421c2..69e184c9fa 100644 --- a/helm/cosmo/charts/controlplane/templates/database-migration.yaml +++ b/helm/cosmo/charts/controlplane/templates/database-migration.yaml @@ -30,6 +30,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: seed securityContext: @@ -64,4 +65,4 @@ spec: key: databaseTlsKey {{- end }} args: - - "/app/dist/bin/db-migrate.js" \ No newline at end of file + - "/app/dist/bin/db-migrate.js" diff --git a/helm/cosmo/charts/controlplane/templates/deactivate-organization.yaml b/helm/cosmo/charts/controlplane/templates/deactivate-organization.yaml index 76d296c0ec..199b5240f9 100644 --- a/helm/cosmo/charts/controlplane/templates/deactivate-organization.yaml +++ b/helm/cosmo/charts/controlplane/templates/deactivate-organization.yaml @@ -31,6 +31,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: deactivate-organization securityContext: diff --git a/helm/cosmo/charts/controlplane/templates/delete-inactive-orgs.yaml b/helm/cosmo/charts/controlplane/templates/delete-inactive-orgs.yaml index 1d0c7e910c..76d2fa15bf 100644 --- a/helm/cosmo/charts/controlplane/templates/delete-inactive-orgs.yaml +++ b/helm/cosmo/charts/controlplane/templates/delete-inactive-orgs.yaml @@ -25,6 +25,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 12 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: delete-inactive-orgs securityContext: @@ -130,4 +131,4 @@ spec: key: keycloakClientId args: - "/app/dist/bin/delete-inactive-orgs.js" -{{- end }} \ No newline at end of file +{{- end }} diff --git a/helm/cosmo/charts/controlplane/templates/delete-user.yaml b/helm/cosmo/charts/controlplane/templates/delete-user.yaml index 424f7b71e5..4bebe4a5f6 100644 --- a/helm/cosmo/charts/controlplane/templates/delete-user.yaml +++ b/helm/cosmo/charts/controlplane/templates/delete-user.yaml @@ -30,6 +30,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: delete-user securityContext: @@ -82,4 +83,4 @@ spec: value: "{{ .Values.jobs.deleteUser.email }}" args: - "/app/dist/bin/delete-user.js" -{{- end }} \ No newline at end of file +{{- end }} diff --git a/helm/cosmo/charts/controlplane/templates/organization-seed.yaml b/helm/cosmo/charts/controlplane/templates/organization-seed.yaml index d9f529e1e9..3f3e11e539 100644 --- a/helm/cosmo/charts/controlplane/templates/organization-seed.yaml +++ b/helm/cosmo/charts/controlplane/templates/organization-seed.yaml @@ -29,6 +29,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + serviceAccountName: {{ include "controlplane.serviceAccountName" . }} containers: - name: seed securityContext: @@ -111,4 +112,4 @@ spec: value: "{{ .Values.global.seed.organizationSlug }}" args: - "/app/dist/bin/seed.js" -{{- end }} \ No newline at end of file +{{- end }}