From 4cf17000dd90567a5c0a81a9fff930d4299b13c5 Mon Sep 17 00:00:00 2001 From: "M. Rehan" Date: Sat, 8 Jan 2022 01:58:34 +0500 Subject: [PATCH] minorfix --- charts/plex/1.6.17/templates/deployment.yaml | 2 ++ test/plex/1.6.17/templates/deployment.yaml | 2 ++ 2 files changed, 4 insertions(+) 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