M. Rehan 3 jaren geleden
bovenliggende
commit
4cf17000dd
2 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 2 0
      charts/plex/1.6.17/templates/deployment.yaml
  2. 2 0
      test/plex/1.6.17/templates/deployment.yaml

+ 2 - 0
charts/plex/1.6.17/templates/deployment.yaml

@@ -22,7 +22,9 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
             {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
             {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
             - name: extrappvolume-{{ $index }}
             - name: extrappvolume-{{ $index }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
+              {{ if $hostPathConfiguration.readOnly }}
               readOnly: {{ $hostPathConfiguration.readOnly }}
               readOnly: {{ $hostPathConfiguration.readOnly }}
+              {{ end }}
             {{ end }}
             {{ end }}
           ports:
           ports:
           - name: pms
           - name: pms

+ 2 - 0
test/plex/1.6.17/templates/deployment.yaml

@@ -22,7 +22,9 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
             {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
             {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
             - name: extrappvolume-{{ $index }}
             - name: extrappvolume-{{ $index }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
+              {{ if $hostPathConfiguration.readOnly }}
               readOnly: {{ $hostPathConfiguration.readOnly }}
               readOnly: {{ $hostPathConfiguration.readOnly }}
+              {{ end }}
             {{ end }}
             {{ end }}
           ports:
           ports:
           - name: pms
           - name: pms