Ability to mount extras in read-only mode

This commit is contained in:
M. Rehan
2022-01-08 01:47:49 +05:00
parent 2beb07d0e4
commit 7e6206b3de
34 changed files with 26 additions and 2 deletions

View File

@@ -14,4 +14,4 @@ sources:
- https://hub.docker.com/r/plexinc/pms-docker/
- https://github.com/k8s-at-home/charts/tree/master/charts/plex
upstream_version: 2.1.0
version: 1.6.16
version: 1.6.17

View File

@@ -318,3 +318,10 @@ questions:
schema:
type: hostpath
required: true
- variable: readOnly
label: "Read Only"
description: "Mount hostpath in read-only mode"
schema:
type: boolean
required: true
default: false

View File

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

View File

@@ -19,6 +19,10 @@ dnsConfig:
options: []
emptyDirVolumes: true
environmentVariables: []
extraAppVolumeMounts:
- mountPath: /mnt/extras
hostPath: /mnt/extras
readOnly: true
gpuConfiguration: {}
hostNetwork: false
image:

View File

@@ -14,4 +14,4 @@ sources:
- https://hub.docker.com/r/plexinc/pms-docker/
- https://github.com/k8s-at-home/charts/tree/master/charts/plex
upstream_version: 2.1.0
version: 1.6.16
version: 1.6.17

View File

@@ -318,3 +318,10 @@ questions:
schema:
type: hostpath
required: true
- variable: readOnly
label: "Read Only"
description: "Mount hostpath in read-only mode"
schema:
type: boolean
required: true
default: false

View File

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

View File

@@ -19,6 +19,10 @@ dnsConfig:
options: []
emptyDirVolumes: true
environmentVariables: []
extraAppVolumeMounts:
- mountPath: /mnt/extras
hostPath: /mnt/extras
readOnly: true
gpuConfiguration: {}
hostNetwork: false
image: