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

Add the ability to use extraVolume[Mounts] #674

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions chart/monocular/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,20 @@ spec:
key: mongodb-root-password
name: {{ template "mongodb.fullname" $global }}
{{- end }}
resources:
{{ toYaml $global.Values.sync.resources | indent 6 }}
{{- with $global.Values.sync.extraVolumeMounts }}
volumeMounts: {{ toYaml . | nindent 6 }}
{{- end }}
resources: {{ toYaml $global.Values.sync.resources | nindent 6 }}
{{- with $global.Values.sync.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 4 }}
nodeSelector: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with $global.Values.sync.affinity }}
affinity:
{{ toYaml . | indent 4 }}
affinity: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with $global.Values.sync.tolerations }}
tolerations:
{{ toYaml . | indent 4 }}
tolerations: {{ toYaml . | nindent 4 }}
{{- end }}
{{- with $global.Values.sync.extraVolumes }}
volumes: {{ toYaml . | nindent 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