diff --git a/charts/plex/1.6.17/templates/deployment.yaml b/charts/plex/1.6.17/templates/deployment.yaml index caf952f3e1..1297b53cf5 100644 --- a/charts/plex/1.6.17/templates/deployment.yaml +++ b/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 diff --git a/test/plex/1.6.17/templates/deployment.yaml b/test/plex/1.6.17/templates/deployment.yaml index caf952f3e1..1297b53cf5 100644 --- a/test/plex/1.6.17/templates/deployment.yaml +++ b/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