updating the helm template to take a list of volume mounts casue im a dev ops

This commit is contained in:
Luke Robles 2022-08-10 10:51:26 -07:00
parent e4107949ec
commit eb8005a18d
2 changed files with 15 additions and 10 deletions

View File

@ -22,10 +22,13 @@ spec:
{{- include "dragon-bot.selectorLabels" . | nindent 8 }} {{- include "dragon-bot.selectorLabels" . | nindent 8 }}
spec: spec:
volumes: volumes:
- name: {{ .Values.volumes.name }} {{- range .Values.volumes }}
- name: {{ .name }}
nfs: nfs:
server: {{ .Values.volumes.server }} server: {{ .server }}
path: {{ .Values.volumes.path }} path: {{ .path }}
{{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
@ -52,9 +55,11 @@ spec:
key: {{ $value }} key: {{ $value }}
{{- end }} {{- end }}
volumeMounts: volumeMounts:
- name: {{ .Values.volumes.name }} {{- range .Values.volumes }}
mountPath: {{ .Values.volumes.mountPath}} - name: {{ .name }}
mountPath: {{ .mountPath}}
readOnly: true readOnly: true
{{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}

View File

@ -71,7 +71,7 @@ tolerations: []
affinity: {} affinity: {}
volumes: volumes:
name: dale-pics - name: dale-pics
type: nfs type: nfs
server: 192.168.1.119 server: 192.168.1.119
path: /volume1/nas/docker_storage/default-syncthing-claim-pvc-7709ff30-4a9b-4d0a-9da7-a38447bc97d9/syncthing-configs/Dropbox-Mirror/Photos/dale path: /volume1/nas/docker_storage/default-syncthing-claim-pvc-7709ff30-4a9b-4d0a-9da7-a38447bc97d9/syncthing-configs/Dropbox-Mirror/Photos/dale