Skip to content

Commit

Permalink
Merge pull request #142 from kloeckner-i/METAL-3549/fix_chart_volume_…
Browse files Browse the repository at this point in the history
…mount

METAL-3549 do not mount volume when secret is undefined
  • Loading branch information
hyunysmile committed May 10, 2022
2 parents 8d51387 + 9db0007 commit 521ae10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/db-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ kubeVersion: ">= 1.19-prerelease <= 1.23-prerelease"
appVersion: "1.6.1"
description: A Database Operator
name: db-operator
version: 1.2.1
version: 1.2.2
4 changes: 4 additions & 0 deletions charts/db-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ spec:
- mountPath: /run/secrets/gcloudsqladmin
name: serviceaccount-cloudsql-admin
readOnly: true
{{- if .Values.secrets.gsql.readonly }}
- mountPath: /run/secrets/gcloudsqlclient
name: serviceaccount-cloudsql-client
readOnly: true
{{- end }}
{{- end }}
- mountPath: /run/config/
name: config-volume
readOnly: true
Expand All @@ -98,10 +100,12 @@ spec:
secret:
defaultMode: 420
secretName: cloudsql-admin-serviceaccount
{{- if .Values.secrets.gsql.readonly }}
- name: serviceaccount-cloudsql-client
secret:
defaultMode: 420
secretName: cloudsql-readonly-serviceaccount
{{- end }}
{{- end }}
- name: config-volume
configMap:
Expand Down

0 comments on commit 521ae10

Please sign in to comment.