Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
Add the ability to use extraVolume[Mounts]
Browse files Browse the repository at this point in the history
It clould be useful to add another storage mounts to get a seperate data
store.
  • Loading branch information
Sascha Girrulat committed Jul 1, 2020
1 parent 6bd6648 commit e76a3ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chart/monocular/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ spec:
key: mongodb-root-password
name: {{ template "mongodb.fullname" $global }}
{{- end }}
{{- with $global.Values.sync.extraVolumeMounts }}
volumeMounts:
{{ toYaml . | indent 6 }}
{{- end }}
resources:
{{ toYaml $global.Values.sync.resources | indent 6 }}
{{- with $global.Values.sync.nodeSelector }}
Expand All @@ -90,4 +94,8 @@ spec:
tolerations:
{{ toYaml . | indent 4 }}
{{- end }}
{{- with $global.Values.sync.extraVolumes }}
volumes:
{{ toYaml . | indent 4 }}
{{- end }}
{{- end -}}
7 changes: 7 additions & 0 deletions chart/monocular/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ sync:
nodeSelector: {}
tolerations: []
affinity: {}
extraVolumes: []
# - name: monocular-ca-certs
# configMap:
# name: monocular-ca-certs
extraVolumeMounts: []
# - name: monocular-ca-certs
# mountPath: /etc/ssl/certs/

# Chartsvc is used to serve chart metadata over a REST API.
chartsvc:
Expand Down

0 comments on commit e76a3ba

Please sign in to comment.