diff --git a/chart/monocular/templates/_helpers.tpl b/chart/monocular/templates/_helpers.tpl index 0ed1cec5..1e12365d 100644 --- a/chart/monocular/templates/_helpers.tpl +++ b/chart/monocular/templates/_helpers.tpl @@ -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 -}} diff --git a/chart/monocular/values.yaml b/chart/monocular/values.yaml index 963d853e..31db9faa 100644 --- a/chart/monocular/values.yaml +++ b/chart/monocular/values.yaml @@ -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: