M. Rehan 3 năm trước cách đây
mục cha
commit
4cf17000dd

+ 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 }}
             - name: extrappvolume-{{ $index }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
+              {{ if $hostPathConfiguration.readOnly }}
               readOnly: {{ $hostPathConfiguration.readOnly }}
+              {{ end }}
             {{ end }}
           ports:
           - 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 }}
             - name: extrappvolume-{{ $index }}
               mountPath: {{ $hostPathConfiguration.mountPath }}
+              {{ if $hostPathConfiguration.readOnly }}
               readOnly: {{ $hostPathConfiguration.readOnly }}
+              {{ end }}
             {{ end }}
           ports:
           - name: pms