Skip to content

Commit

Permalink
feat: enable extra volume mounts for front end (#128)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donbowman authored Feb 24, 2025
1 parent 69818a0 commit 9eaef9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/keep/templates/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -118,4 +121,7 @@ spec:
volumes:
- name: state-volume
emptyDir: {}
{{- with .Values.frontend.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

0 comments on commit 9eaef9a

Please sign in to comment.