diff --git a/utils/helm/speckle-server/templates/fileimport_service/serviceaccount.yml b/utils/helm/speckle-server/templates/fileimport_service/serviceaccount.yml index 1dd32b1ede..6e388f19f8 100644 --- a/utils/helm/speckle-server/templates/fileimport_service/serviceaccount.yml +++ b/utils/helm/speckle-server/templates/fileimport_service/serviceaccount.yml @@ -11,4 +11,7 @@ metadata: automountServiceAccountToken: false secrets: - name: {{ default .Values.secretName .Values.db.connectionString.secretName }} +{{- if .Values.featureFlags.workspacesMultiRegionEnabled }} + - name: {{ default .Values.secretName .Values.multiRegion.config.secretName }} +{{- end }} {{- end -}} diff --git a/utils/helm/speckle-server/templates/monitoring/serviceaccount.yml b/utils/helm/speckle-server/templates/monitoring/serviceaccount.yml index facbd525e9..a323d6531d 100644 --- a/utils/helm/speckle-server/templates/monitoring/serviceaccount.yml +++ b/utils/helm/speckle-server/templates/monitoring/serviceaccount.yml @@ -11,4 +11,7 @@ metadata: automountServiceAccountToken: false secrets: - name: {{ default .Values.secretName .Values.db.connectionString.secretName }} +{{- if .Values.featureFlags.workspacesMultiRegionEnabled }} + - name: {{ default .Values.secretName .Values.multiRegion.config.secretName }} +{{- end }} {{- end -}} diff --git a/utils/helm/speckle-server/templates/objects/serviceaccount.yml b/utils/helm/speckle-server/templates/objects/serviceaccount.yml index ecd4da60fd..3d8b51f457 100644 --- a/utils/helm/speckle-server/templates/objects/serviceaccount.yml +++ b/utils/helm/speckle-server/templates/objects/serviceaccount.yml @@ -38,5 +38,7 @@ secrets: {{- if .Values.featureFlags.workspaceModuleEnabled }} - name: {{ default .Values.secretName .Values.server.licenseTokenSecret.secretName }} {{- end }} - +{{- if .Values.featureFlags.workspacesMultiRegionEnabled }} + - name: {{ default .Values.secretName .Values.multiRegion.config.secretName }} +{{- end }} {{- end -}} diff --git a/utils/helm/speckle-server/templates/preview_service/serviceaccount.yml b/utils/helm/speckle-server/templates/preview_service/serviceaccount.yml index 0d7cd73269..e51278e2e3 100644 --- a/utils/helm/speckle-server/templates/preview_service/serviceaccount.yml +++ b/utils/helm/speckle-server/templates/preview_service/serviceaccount.yml @@ -11,4 +11,7 @@ metadata: automountServiceAccountToken: false secrets: - name: {{ default .Values.secretName .Values.db.connectionString.secretName }} +{{- if .Values.featureFlags.workspacesMultiRegionEnabled }} + - name: {{ default .Values.secretName .Values.multiRegion.config.secretName }} +{{- end }} {{- end -}} diff --git a/utils/helm/speckle-server/templates/server/serviceaccount.yml b/utils/helm/speckle-server/templates/server/serviceaccount.yml index c1895c2332..c24cdd0cb7 100644 --- a/utils/helm/speckle-server/templates/server/serviceaccount.yml +++ b/utils/helm/speckle-server/templates/server/serviceaccount.yml @@ -38,5 +38,8 @@ secrets: {{- if .Values.featureFlags.workspaceModuleEnabled }} - name: {{ default .Values.secretName .Values.server.licenseTokenSecret.secretName }} {{- end }} +{{- if .Values.featureFlags.workspacesMultiRegionEnabled }} + - name: {{ default .Values.secretName .Values.multiRegion.config.secretName }} +{{- end }} {{- end -}} diff --git a/utils/helm/speckle-server/templates/webhook_service/serviceaccount.yml b/utils/helm/speckle-server/templates/webhook_service/serviceaccount.yml index f2e8df4fea..15f01107ad 100644 --- a/utils/helm/speckle-server/templates/webhook_service/serviceaccount.yml +++ b/utils/helm/speckle-server/templates/webhook_service/serviceaccount.yml @@ -11,4 +11,7 @@ metadata: automountServiceAccountToken: false secrets: - name: {{ ( default .Values.secretName .Values.db.connectionString.secretName ) }} +{{- if .Values.featureFlags.workspacesMultiRegionEnabled }} + - name: {{ default .Values.secretName .Values.multiRegion.config.secretName }} +{{- end }} {{- end -}}