Skip to content

Commit

Permalink
Fix flyte-core helm charts for multi cluster configuration (#3993)
Browse files Browse the repository at this point in the history
* Fix cluster secrets access for flyte-core helm charts when used in multi-cluster setup

Signed-off-by: gdabisias <[email protected]>

* Fix init container secret

Signed-off-by: gdabisias <[email protected]>

* Fix secret name

Signed-off-by: gdabisias <[email protected]>

* Generalise volume mounting points

Signed-off-by: gdabisias <[email protected]>

---------

Signed-off-by: gdabisias <[email protected]>
  • Loading branch information
gdabisias authored Sep 27, 2023
1 parent 8c05f4e commit b52bbe2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions charts/flyte-core/templates/admin/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ spec:
name: clusters-config-volume
- mountPath: /etc/secrets/
name: admin-secrets
{{- if gt (len .Values.configmap.clusters.labelClusterMap) 0 }}
{{- with .Values.flyteadmin.additionalVolumeMounts -}}
{{ tpl (toYaml .) $ | nindent 10 }}
{{- end }}
{{- end }}
{{- end }}
- name: generate-secrets
image: "{{ .Values.flyteadmin.image.repository }}:{{ .Values.flyteadmin.image.tag }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
name: config-volume
{{- if gt (len .Values.configmap.clusters.labelClusterMap) 0 }}
- mountPath: /var/run/credentials
name: flyte-admin-secrets
name: cluster-secrets
{{- end }}
serviceAccountName: {{ .Values.cluster_resource_manager.service_account_name }}
{{- if .Values.cluster_resource_manager.resources }}
Expand All @@ -55,9 +55,9 @@ spec:
name: flyte-clusterresourcesync-config
name: config-volume
{{- if gt (len .Values.configmap.clusters.labelClusterMap) 0 }}
- name: flyte-admin-secrets
- name: cluster-secrets
secret:
secretName: flyte-admin-secrets
secretName: cluster-credentials
{{- end }}
{{- if .Values.cluster_resource_manager.config.cluster_resources.standaloneDeployment }}
- name: auth
Expand Down

0 comments on commit b52bbe2

Please sign in to comment.