Skip to content

Commit

Permalink
Add extraVolumes to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
swoehrl-mw committed Jan 12, 2022
1 parent ececafe commit 938003d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy/helm/opsbot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ spec:
- name: plugins
mountPath: /additional_plugins
{{- end }}
{{- range .Values.extraVolumes }}
- name: {{ .name | required "extraVolumes .name is required" }}
mountPath: {{ .mountPath | required "extraVolumes .mountPath is required "}}
{{- end }}
env:
- name: OPSBOT_CONFIG_FILE
value: /config/config.yaml
Expand Down Expand Up @@ -76,3 +80,8 @@ spec:
configMap:
name: {{ include "opsbot.fullname" . }}-plugins
{{- end }}
{{- range .Values.extraVolumes }}
- name: {{ .name | required "extraVolumes .name is required" }}
{{- toYaml .def | nindent 10 }}
{{- end }}

8 changes: 8 additions & 0 deletions deploy/helm/opsbot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ nodeSelector: {}
tolerations: []

affinity: {}

# Use this option to mount extra volumes into the opsbot pod
extraVolumes: []
# - name: persistence
# def:
# persistentVolumeClaim:
# claimName: opsbot-persistence
# mountPath: /mnt/persistence

0 comments on commit 938003d

Please sign in to comment.