Browse Source

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

NAS-114207 / 22.02 / Ability to mount extras in read-only mode
M. Rehan 3 years ago
parent
commit
27a070ef83
34 changed files with 28 additions and 2 deletions
  1. 0 0
      charts/plex/1.6.17/.helmignore
  2. 0 0
      charts/plex/1.6.17/Chart.lock
  3. 1 1
      charts/plex/1.6.17/Chart.yaml
  4. 0 0
      charts/plex/1.6.17/README.md
  5. 0 0
      charts/plex/1.6.17/app-readme.md
  6. 0 0
      charts/plex/1.6.17/charts/common-2112.0.0.tgz
  7. 0 0
      charts/plex/1.6.17/default_values.yaml
  8. 0 0
      charts/plex/1.6.17/ix_values.yaml
  9. 0 0
      charts/plex/1.6.17/migrations/migrate_from_1.0.0
  10. 6 0
      charts/plex/1.6.17/questions.yaml
  11. 0 0
      charts/plex/1.6.17/templates/NOTES.txt
  12. 3 0
      charts/plex/1.6.17/templates/deployment.yaml
  13. 0 0
      charts/plex/1.6.17/templates/probe_config.yaml
  14. 0 0
      charts/plex/1.6.17/templates/service-tcp.yaml
  15. 0 0
      charts/plex/1.6.17/templates/service-udp.yaml
  16. 4 0
      charts/plex/1.6.17/test_values.yaml
  17. 0 0
      charts/plex/1.6.17/values.yaml
  18. 0 0
      test/plex/1.6.17/.helmignore
  19. 0 0
      test/plex/1.6.17/Chart.lock
  20. 1 1
      test/plex/1.6.17/Chart.yaml
  21. 0 0
      test/plex/1.6.17/README.md
  22. 0 0
      test/plex/1.6.17/app-readme.md
  23. 0 0
      test/plex/1.6.17/charts/common-2112.0.0.tgz
  24. 0 0
      test/plex/1.6.17/default_values.yaml
  25. 0 0
      test/plex/1.6.17/ix_values.yaml
  26. 0 0
      test/plex/1.6.17/migrations/migrate_from_1.0.0
  27. 6 0
      test/plex/1.6.17/questions.yaml
  28. 0 0
      test/plex/1.6.17/templates/NOTES.txt
  29. 3 0
      test/plex/1.6.17/templates/deployment.yaml
  30. 0 0
      test/plex/1.6.17/templates/probe_config.yaml
  31. 0 0
      test/plex/1.6.17/templates/service-tcp.yaml
  32. 0 0
      test/plex/1.6.17/templates/service-udp.yaml
  33. 4 0
      test/plex/1.6.17/test_values.yaml
  34. 0 0
      test/plex/1.6.17/values.yaml

+ 0 - 0
charts/plex/1.6.16/.helmignore → charts/plex/1.6.17/.helmignore


+ 0 - 0
charts/plex/1.6.16/Chart.lock → charts/plex/1.6.17/Chart.lock


+ 1 - 1
charts/plex/1.6.16/Chart.yaml → charts/plex/1.6.17/Chart.yaml

@@ -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

+ 0 - 0
charts/plex/1.6.16/README.md → charts/plex/1.6.17/README.md


+ 0 - 0
charts/plex/1.6.16/app-readme.md → charts/plex/1.6.17/app-readme.md


+ 0 - 0
charts/plex/1.6.16/charts/common-2112.0.0.tgz → charts/plex/1.6.17/charts/common-2112.0.0.tgz


+ 0 - 0
charts/plex/1.6.16/default_values.yaml → charts/plex/1.6.17/default_values.yaml


+ 0 - 0
charts/plex/1.6.16/ix_values.yaml → charts/plex/1.6.17/ix_values.yaml


+ 0 - 0
charts/plex/1.6.16/migrations/migrate_from_1.0.0 → charts/plex/1.6.17/migrations/migrate_from_1.0.0


+ 6 - 0
test/plex/1.6.16/questions.yaml → charts/plex/1.6.17/questions.yaml

@@ -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

+ 0 - 0
charts/plex/1.6.16/templates/NOTES.txt → charts/plex/1.6.17/templates/NOTES.txt


+ 3 - 0
test/plex/1.6.16/templates/deployment.yaml → charts/plex/1.6.17/templates/deployment.yaml

@@ -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

+ 0 - 0
charts/plex/1.6.16/templates/probe_config.yaml → charts/plex/1.6.17/templates/probe_config.yaml


+ 0 - 0
charts/plex/1.6.16/templates/service-tcp.yaml → charts/plex/1.6.17/templates/service-tcp.yaml


+ 0 - 0
charts/plex/1.6.16/templates/service-udp.yaml → charts/plex/1.6.17/templates/service-udp.yaml


+ 4 - 0
test/plex/1.6.16/test_values.yaml → charts/plex/1.6.17/test_values.yaml

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

+ 0 - 0
charts/plex/1.6.16/values.yaml → charts/plex/1.6.17/values.yaml


+ 0 - 0
test/plex/1.6.16/.helmignore → test/plex/1.6.17/.helmignore


+ 0 - 0
test/plex/1.6.16/Chart.lock → test/plex/1.6.17/Chart.lock


+ 1 - 1
test/plex/1.6.16/Chart.yaml → test/plex/1.6.17/Chart.yaml

@@ -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

+ 0 - 0
test/plex/1.6.16/README.md → test/plex/1.6.17/README.md


+ 0 - 0
test/plex/1.6.16/app-readme.md → test/plex/1.6.17/app-readme.md


+ 0 - 0
test/plex/1.6.16/charts/common-2112.0.0.tgz → test/plex/1.6.17/charts/common-2112.0.0.tgz


+ 0 - 0
test/plex/1.6.16/default_values.yaml → test/plex/1.6.17/default_values.yaml


+ 0 - 0
test/plex/1.6.16/ix_values.yaml → test/plex/1.6.17/ix_values.yaml


+ 0 - 0
test/plex/1.6.16/migrations/migrate_from_1.0.0 → test/plex/1.6.17/migrations/migrate_from_1.0.0


+ 6 - 0
charts/plex/1.6.16/questions.yaml → test/plex/1.6.17/questions.yaml

@@ -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

+ 0 - 0
test/plex/1.6.16/templates/NOTES.txt → test/plex/1.6.17/templates/NOTES.txt


+ 3 - 0
charts/plex/1.6.16/templates/deployment.yaml → test/plex/1.6.17/templates/deployment.yaml

@@ -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

+ 0 - 0
test/plex/1.6.16/templates/probe_config.yaml → test/plex/1.6.17/templates/probe_config.yaml


+ 0 - 0
test/plex/1.6.16/templates/service-tcp.yaml → test/plex/1.6.17/templates/service-tcp.yaml


+ 0 - 0
test/plex/1.6.16/templates/service-udp.yaml → test/plex/1.6.17/templates/service-udp.yaml


+ 4 - 0
charts/plex/1.6.16/test_values.yaml → test/plex/1.6.17/test_values.yaml

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

+ 0 - 0
test/plex/1.6.16/values.yaml → test/plex/1.6.17/values.yaml