Browse Source

Merge pull request #52 from truenas/NAS-110399

Allow specifying extra host path volumes for nextcloud/plex
Waqar Ahmed 4 years ago
parent
commit
536b320154
41 changed files with 70 additions and 2 deletions
  1. 0 0
      test/nextcloud/1.2.2/.helmignore
  2. 0 0
      test/nextcloud/1.2.2/Chart.lock
  3. 1 1
      test/nextcloud/1.2.2/Chart.yaml
  4. 0 0
      test/nextcloud/1.2.2/README.md
  5. 0 0
      test/nextcloud/1.2.2/app-readme.md
  6. 0 0
      test/nextcloud/1.2.2/charts/common-2104.0.0.tgz
  7. 0 0
      test/nextcloud/1.2.2/default_values.yaml
  8. 0 0
      test/nextcloud/1.2.2/ix_values.yaml
  9. 0 0
      test/nextcloud/1.2.2/migrations/migrate_from_1.1.0
  10. 25 0
      test/nextcloud/1.2.2/questions.yaml
  11. 0 0
      test/nextcloud/1.2.2/templates/NOTES.txt
  12. 0 0
      test/nextcloud/1.2.2/templates/_postgres.tpl
  13. 0 0
      test/nextcloud/1.2.2/templates/backup-postgres-config.yaml
  14. 0 0
      test/nextcloud/1.2.2/templates/backup-postgres-hook.yaml
  15. 9 0
      test/nextcloud/1.2.2/templates/deployment.yaml
  16. 0 0
      test/nextcloud/1.2.2/templates/nuke-deployments-hook.yaml
  17. 0 0
      test/nextcloud/1.2.2/templates/postgres-deployment.yaml
  18. 0 0
      test/nextcloud/1.2.2/templates/postgres-secret.yaml
  19. 0 0
      test/nextcloud/1.2.2/templates/postgres-service.yaml
  20. 0 0
      test/nextcloud/1.2.2/templates/secrets.yaml
  21. 0 0
      test/nextcloud/1.2.2/templates/service.yaml
  22. 0 0
      test/nextcloud/1.2.2/templates/serviceaccount.yaml
  23. 0 0
      test/nextcloud/1.2.2/test_values.yaml
  24. 0 0
      test/nextcloud/1.2.2/values.yaml
  25. 0 0
      test/plex/1.4.0/.helmignore
  26. 0 0
      test/plex/1.4.0/Chart.lock
  27. 1 1
      test/plex/1.4.0/Chart.yaml
  28. 0 0
      test/plex/1.4.0/README.md
  29. 0 0
      test/plex/1.4.0/app-readme.md
  30. 0 0
      test/plex/1.4.0/charts/common-2104.0.0.tgz
  31. 0 0
      test/plex/1.4.0/default_values.yaml
  32. 0 0
      test/plex/1.4.0/ix_values.yaml
  33. 0 0
      test/plex/1.4.0/migrations/migrate_from_1.0.0
  34. 25 0
      test/plex/1.4.0/questions.yaml
  35. 0 0
      test/plex/1.4.0/templates/NOTES.txt
  36. 9 0
      test/plex/1.4.0/templates/deployment.yaml
  37. 0 0
      test/plex/1.4.0/templates/probe_config.yaml
  38. 0 0
      test/plex/1.4.0/templates/service-tcp.yaml
  39. 0 0
      test/plex/1.4.0/templates/service-udp.yaml
  40. 0 0
      test/plex/1.4.0/test_values.yaml
  41. 0 0
      test/plex/1.4.0/values.yaml

+ 0 - 0
test/nextcloud/1.2.1/.helmignore → test/nextcloud/1.2.2/.helmignore


+ 0 - 0
test/nextcloud/1.2.1/Chart.lock → test/nextcloud/1.2.2/Chart.lock


+ 1 - 1
test/nextcloud/1.2.1/Chart.yaml → test/nextcloud/1.2.2/Chart.yaml

@@ -1,6 +1,6 @@
 apiVersion: v2
 name: nextcloud
-version: 1.2.1
+version: 1.2.2
 appVersion: 20.0.7
 description: A file sharing server that puts the control and security of your own data back into your hands.
 keywords:

+ 0 - 0
test/nextcloud/1.2.1/README.md → test/nextcloud/1.2.2/README.md


+ 0 - 0
test/nextcloud/1.2.1/app-readme.md → test/nextcloud/1.2.2/app-readme.md


+ 0 - 0
test/nextcloud/1.2.1/charts/common-2104.0.0.tgz → test/nextcloud/1.2.2/charts/common-2104.0.0.tgz


+ 0 - 0
test/nextcloud/1.2.1/default_values.yaml → test/nextcloud/1.2.2/default_values.yaml


+ 0 - 0
test/nextcloud/1.2.1/ix_values.yaml → test/nextcloud/1.2.2/ix_values.yaml


+ 0 - 0
test/nextcloud/1.2.1/migrations/migrate_from_1.1.0 → test/nextcloud/1.2.2/migrations/migrate_from_1.1.0


+ 25 - 0
test/nextcloud/1.2.1/questions.yaml → test/nextcloud/1.2.2/questions.yaml

@@ -134,6 +134,31 @@ questions:
                         type: hostpath
                         required: true
 
+  - variable: extraAppVolumeMounts
+    label: "Nextcloud Extra Host Path Volumes"
+    group: "Storage"
+    schema:
+      type: list
+      items:
+        - variable: extraAppVolume
+          label: "Nextcloud Host Path Volume"
+          description: "Add an extra host path volume for nextcloud application"
+          schema:
+            type: dict
+            attrs:
+              - variable: mountPath
+                label: "Mount Path in Pod"
+                description: "Path where the volume will be mounted inside the pod"
+                schema:
+                  type: path
+                  required: true
+              - variable: hostPath
+                label: "Host Path"
+                description: "Host path"
+                schema:
+                  type: hostpath
+                  required: true
+
   - variable: postgresAppVolumeMounts
     label: "Postgres Storage"
     group: "Storage"

+ 0 - 0
test/nextcloud/1.2.1/templates/NOTES.txt → test/nextcloud/1.2.2/templates/NOTES.txt


+ 0 - 0
test/nextcloud/1.2.1/templates/_postgres.tpl → test/nextcloud/1.2.2/templates/_postgres.tpl


+ 0 - 0
test/nextcloud/1.2.1/templates/backup-postgres-config.yaml → test/nextcloud/1.2.2/templates/backup-postgres-config.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/backup-postgres-hook.yaml → test/nextcloud/1.2.2/templates/backup-postgres-hook.yaml


+ 9 - 0
test/nextcloud/1.2.1/templates/deployment.yaml → test/nextcloud/1.2.2/templates/deployment.yaml

@@ -48,7 +48,16 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
         - name: nextcloud-data
           mountPath: /var/www/html/themes
           subPath: "themes"
+        {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
+        - name: extrappvolume-{{ $index }}
+          mountPath: {{ $hostPathConfiguration.mountPath }}
+        {{ end }}
 {{ include "common.storage.allAppVolumes" .Values | nindent 6 }}
+      {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
+        - name: extrappvolume-{{ $index }}
+          hostPath:
+            path: {{ $hostPathConfiguration.hostPath }}
+      {{ end }}
       # Will mount configuration files as www-data (id: 33) for nextcloud
       securityContext:
         fsGroup: 33

+ 0 - 0
test/nextcloud/1.2.1/templates/nuke-deployments-hook.yaml → test/nextcloud/1.2.2/templates/nuke-deployments-hook.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/postgres-deployment.yaml → test/nextcloud/1.2.2/templates/postgres-deployment.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/postgres-secret.yaml → test/nextcloud/1.2.2/templates/postgres-secret.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/postgres-service.yaml → test/nextcloud/1.2.2/templates/postgres-service.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/secrets.yaml → test/nextcloud/1.2.2/templates/secrets.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/service.yaml → test/nextcloud/1.2.2/templates/service.yaml


+ 0 - 0
test/nextcloud/1.2.1/templates/serviceaccount.yaml → test/nextcloud/1.2.2/templates/serviceaccount.yaml


+ 0 - 0
test/nextcloud/1.2.1/test_values.yaml → test/nextcloud/1.2.2/test_values.yaml


+ 0 - 0
test/nextcloud/1.2.1/values.yaml → test/nextcloud/1.2.2/values.yaml


+ 0 - 0
test/plex/1.3.0/.helmignore → test/plex/1.4.0/.helmignore


+ 0 - 0
test/plex/1.3.0/Chart.lock → test/plex/1.4.0/Chart.lock


+ 1 - 1
test/plex/1.3.0/Chart.yaml → test/plex/1.4.0/Chart.yaml

@@ -2,7 +2,7 @@ apiVersion: v2
 appVersion: 1.21.3.4046-3c1c83ba4
 description: Plex Media Server
 name: plex
-version: 1.3.0
+version: 1.4.0
 keywords:
   - plex
 home: https://plex.tv/

+ 0 - 0
test/plex/1.3.0/README.md → test/plex/1.4.0/README.md


+ 0 - 0
test/plex/1.3.0/app-readme.md → test/plex/1.4.0/app-readme.md


+ 0 - 0
test/plex/1.3.0/charts/common-2104.0.0.tgz → test/plex/1.4.0/charts/common-2104.0.0.tgz


+ 0 - 0
test/plex/1.3.0/default_values.yaml → test/plex/1.4.0/default_values.yaml


+ 0 - 0
test/plex/1.3.0/ix_values.yaml → test/plex/1.4.0/ix_values.yaml


+ 0 - 0
test/plex/1.3.0/migrations/migrate_from_1.0.0 → test/plex/1.4.0/migrations/migrate_from_1.0.0


+ 25 - 0
test/plex/1.3.0/questions.yaml → test/plex/1.4.0/questions.yaml

@@ -264,3 +264,28 @@ questions:
                   type: path
                   editable: false
                   default: "/config/Library/Application Support/Plex Media Server/Logs"
+
+  - variable: extraAppVolumeMounts
+    label: "Plex Extra Host Path Volumes"
+    group: "Storage"
+    schema:
+      type: list
+      items:
+        - variable: extraAppVolume
+          label: "Plex Host Path Volume"
+          description: "Add an extra host path volume for plex application"
+          schema:
+            type: dict
+            attrs:
+              - variable: mountPath
+                label: "Mount Path in Pod"
+                description: "Path where the volume will be mounted inside the pod"
+                schema:
+                  type: path
+                  required: true
+              - variable: hostPath
+                label: "Host Path"
+                description: "Host path"
+                schema:
+                  type: hostpath
+                  required: true

+ 0 - 0
test/plex/1.3.0/templates/NOTES.txt → test/plex/1.4.0/templates/NOTES.txt


+ 9 - 0
test/plex/1.3.0/templates/deployment.yaml → test/plex/1.4.0/templates/deployment.yaml

@@ -15,6 +15,10 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
               mountPath: /bin/plex_probe_check.sh
               readOnly: true
               subPath: entrypoint.sh
+            {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
+            - name: extrappvolume-{{ $index }}
+              mountPath: {{ $hostPathConfiguration.mountPath }}
+            {{ end }}
           ports:
           - name: pms
             protocol: TCP
@@ -82,3 +86,8 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
           configMap:
             defaultMode: 0700
             name: "plex-probe-check"
+        {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
+        - name: extrappvolume-{{ $index }}
+          hostPath:
+            path: {{ $hostPathConfiguration.hostPath }}
+        {{ end }}

+ 0 - 0
test/plex/1.3.0/templates/probe_config.yaml → test/plex/1.4.0/templates/probe_config.yaml


+ 0 - 0
test/plex/1.3.0/templates/service-tcp.yaml → test/plex/1.4.0/templates/service-tcp.yaml


+ 0 - 0
test/plex/1.3.0/templates/service-udp.yaml → test/plex/1.4.0/templates/service-udp.yaml


+ 0 - 0
test/plex/1.3.0/test_values.yaml → test/plex/1.4.0/test_values.yaml


+ 0 - 0
test/plex/1.3.0/values.yaml → test/plex/1.4.0/values.yaml