File tree Expand file tree Collapse file tree 2 files changed +32
-6
lines changed Expand file tree Collapse file tree 2 files changed +32
-6
lines changed Original file line number Diff line number Diff line change 6868 mountPath : {{ .Values.persistence.mountPath }}
6969 subPath : {{ .Values.persistence.subPath }}
7070 {{- end }}
71- - name : config
72- mountPath : " /usr/local/etc/polynsi"
71+ - name : combined- config
72+ mountPath : /usr/local/etc/polynsi/
7373 readOnly : true
7474 {{- with .Values.nodeSelector }}
7575 nodeSelector :
8484 {{- toYaml . | nindent 8 }}
8585 {{- end }}
8686 volumes :
87- - name : config
88- configMap :
89- name : {{ printf "%s-config" (include "PolyNSI.fullname" .) }}
87+ - name : combined-config
88+ projected :
89+ sources :
90+ - configMap :
91+ name : {{ printf "%s-config" (include "PolyNSI.fullname" .) }}
92+ {{- if .Values.keystore.enabled }}
93+ - secret :
94+ name : {{ .Values.keystore.secretName }}
95+ items :
96+ - key : {{ .Values.keystore.key }}
97+ path : polynsi-keystore.jks
98+ {{- end }}
99+ {{- if .Values.truststore.enabled }}
100+ - secret :
101+ name : {{ .Values.truststore.secretName }}
102+ items :
103+ - key : {{ .Values.truststore.key }}
104+ path : polynsi-truststore.jks
105+ {{- end }}
90106{{- if .Values.persistence.enabled }}
91107 volumeClaimTemplates :
92108 - metadata :
@@ -105,4 +121,4 @@ spec:
105121 resources :
106122 requests :
107123 storage : {{ .Values.persistence.size | quote }}
108- {{- end }}
124+ {{- end }}
Original file line number Diff line number Diff line change @@ -87,6 +87,16 @@ persistence:
8787 - ReadWriteOnce
8888 size : 1Gi
8989
90+ keystore :
91+ enabled : false
92+ secretName : polynsi-keystore
93+ key : keystore.jks
94+
95+ truststore :
96+ enabled : false
97+ secretName : polynsi-truststore
98+ key : truststore.jks
99+
90100config :
91101 # either read config files from folder or use inline data, filesGlob takes precedence over inline.
92102 # filesGlob: "config/*"
You can’t perform that action at this time.
0 commit comments