Skip to content

Commit f933889

Browse files
committed
adding volume support
1 parent 6c1d886 commit f933889

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.idea/

charts/tiphys/templates/app.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,23 @@ spec:
149149
{{- with $app.service.healthChecks }}
150150
{{ toYaml . | nindent 10 }}
151151
{{- end }}
152+
volumeMounts:
153+
- name: secrets
154+
mountPath: "/secrets"
155+
readOnly: true
156+
- name: secrets
157+
mountPath: "/app-secrets"
158+
readOnly: true
159+
{{- with $app.service.volumeMounts }}
160+
{{- toYaml . | nindent 12 }}
161+
{{- end }}
162+
volumes:
163+
- name: secrets
164+
secret:
165+
secretName: {{ template "opszero.fullname" $ }}-{{ $app.name }}
166+
{{- with $app.service.volumes }}
167+
{{- toYaml . | nindent 8 }}
168+
{{- end }}
152169

153170
{{- if $app.secrets }}
154171
---

0 commit comments

Comments
 (0)