Commit 5e7efc81 authored by Stefan Bakocs's avatar Stefan Bakocs 👁
Browse files

add a flag to enable cloudstorage and edit deployment yaml to mount the volume...

add a flag to enable cloudstorage and edit deployment yaml to mount the volume and include the file from a secret
parent e037e835
Pipeline #102677 failed with stage
in 13 seconds
......@@ -71,6 +71,17 @@ mongodb://
{{- printf "/%s?replicaSet=rs0" .Values.mongodb.dbName -}}
{{- end -}}
{{- define "cloudSqlContainerMount" -}}
- name: google_cloud_storage
mountPath: "/etc/foo"
readOnly: true
{{- end -}}
{{- define "cloudSqlContainerSecret" -}}
- name: google_cloud_storage
secret:
secretName: mysecret
{{- end -}}
{{- define "cloudSqlContainer" -}}
name: cloudsql-proxy
......
......@@ -82,7 +82,10 @@ spec:
{{- range $key, $volume := .Values.application.volumes }}
- mountPath: {{$volume.mountPath}}
name: {{ template "fullname" $context }}-{{$volume.name}}
{{- end }}
{{- end }}
{{if .Values.google_cloud_storage.enabled}}
- {{- include "cloudSqlContainerSecret" $context | nindent 10 }}
{{- end }}
{{if .Values.application.leaderElector.enabled}}
- name: leader-elector
image: "k8s.gcr.io/leader-elector:0.5"
......@@ -109,6 +112,9 @@ spec:
persistentVolumeClaim:
claimName: {{ template "fullname" $context }}-{{$volume.name}}
{{- end }}
{{if .Values.google_cloud_storage.enabled}}
- {{- include "cloudSqlContainerSecret" $context | nindent 10 }}
{{- end }}
{{if .Values.cloudsql.enabled}}
- {{- include "cloudSqlCredentialsVolume" $context | nindent 10 }}
{{- end }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment