Merge pull request #290 from truenas/mrehan/read-only-vol

NAS-114207 / 22.02 / Ability to mount extras in read-only mode
This commit is contained in:
M. Rehan
2022-01-10 19:41:08 +05:00
committed by GitHub
34 changed files with 28 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,9 @@ questions:
schema:
type: hostpath
required: true
- variable: readOnly
label: "Read Only"
description: "Mount hostpath in read-only mode"
schema:
type: boolean
default: false

View File

@@ -22,6 +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

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,9 @@ questions:
schema:
type: hostpath
required: true
- variable: readOnly
label: "Read Only"
description: "Mount hostpath in read-only mode"
schema:
type: boolean
default: false

View File

@@ -22,6 +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

View File

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