From 9eaef9abeb2c3ec916efdfd87074a0fc44bc7d1d Mon Sep 17 00:00:00 2001 From: Don Bowman Date: Mon, 24 Feb 2025 14:50:16 -0500 Subject: [PATCH] feat: enable extra volume mounts for front end (#128) This allows adding icons to generic events, e.g. add: extraVolumeMounts: - mountPath: /app/public/icons/eventc-icon.png name: icons subPath: eventc-icon.png extraVolumes: - name: icons configMap: name: icons to the frontend section (and make a config map with your icon). I added the icon config map via kustomize: configMapGenerator: - name: icons files: - eventc-icon.png --- charts/keep/templates/frontend.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/keep/templates/frontend.yaml b/charts/keep/templates/frontend.yaml index 68d3409..b36f678 100644 --- a/charts/keep/templates/frontend.yaml +++ b/charts/keep/templates/frontend.yaml @@ -91,6 +91,9 @@ spec: - name: state-volume mountPath: /state readOnly: false + {{- with .Values.frontend.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- if .Values.frontend.healthCheck.enabled }} {{- toYaml .Values.frontend.healthCheck.probes | nindent 10 }} {{- end }} @@ -118,4 +121,7 @@ spec: volumes: - name: state-volume emptyDir: {} + {{- with .Values.frontend.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }}