M. Rehan 3 年之前
父节点
当前提交
4cf17000dd
共有 2 个文件被更改,包括 4 次插入0 次删除
  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 }}
             - 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