mirror of
https://github.com/truenas/charts.git
synced 2026-04-07 20:59:13 +08:00
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:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -19,6 +19,10 @@ dnsConfig:
|
||||
options: []
|
||||
emptyDirVolumes: true
|
||||
environmentVariables: []
|
||||
extraAppVolumeMounts:
|
||||
- mountPath: /mnt/extras
|
||||
hostPath: /mnt/extras
|
||||
readOnly: true
|
||||
gpuConfiguration: {}
|
||||
hostNetwork: false
|
||||
image:
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -19,6 +19,10 @@ dnsConfig:
|
||||
options: []
|
||||
emptyDirVolumes: true
|
||||
environmentVariables: []
|
||||
extraAppVolumeMounts:
|
||||
- mountPath: /mnt/extras
|
||||
hostPath: /mnt/extras
|
||||
readOnly: true
|
||||
gpuConfiguration: {}
|
||||
hostNetwork: false
|
||||
image:
|
||||
Reference in New Issue
Block a user