Преглед изворни кода

Merge pull request #277 from truenas/NAS-114011

NAS-114011 / 22.02 / Allow using plexpass for plex app
Waqar Ahmed пре 4 година
родитељ
комит
7f7554a318
34 измењених фајлова са 38 додато и 22 уклоњено
  1. 0 0
      charts/plex/1.6.16/.helmignore
  2. 0 0
      charts/plex/1.6.16/Chart.lock
  3. 1 1
      charts/plex/1.6.16/Chart.yaml
  4. 0 0
      charts/plex/1.6.16/README.md
  5. 0 0
      charts/plex/1.6.16/app-readme.md
  6. 0 0
      charts/plex/1.6.16/charts/common-2112.0.0.tgz
  7. 0 0
      charts/plex/1.6.16/default_values.yaml
  8. 4 0
      charts/plex/1.6.16/ix_values.yaml
  9. 0 0
      charts/plex/1.6.16/migrations/migrate_from_1.0.0
  10. 8 9
      charts/plex/1.6.16/questions.yaml
  11. 0 0
      charts/plex/1.6.16/templates/NOTES.txt
  12. 5 1
      charts/plex/1.6.16/templates/deployment.yaml
  13. 0 0
      charts/plex/1.6.16/templates/probe_config.yaml
  14. 0 0
      charts/plex/1.6.16/templates/service-tcp.yaml
  15. 0 0
      charts/plex/1.6.16/templates/service-udp.yaml
  16. 1 0
      charts/plex/1.6.16/test_values.yaml
  17. 0 0
      charts/plex/1.6.16/values.yaml
  18. 0 0
      test/plex/1.6.16/.helmignore
  19. 0 0
      test/plex/1.6.16/Chart.lock
  20. 1 1
      test/plex/1.6.16/Chart.yaml
  21. 0 0
      test/plex/1.6.16/README.md
  22. 0 0
      test/plex/1.6.16/app-readme.md
  23. 0 0
      test/plex/1.6.16/charts/common-2112.0.0.tgz
  24. 0 0
      test/plex/1.6.16/default_values.yaml
  25. 4 0
      test/plex/1.6.16/ix_values.yaml
  26. 0 0
      test/plex/1.6.16/migrations/migrate_from_1.0.0
  27. 8 9
      test/plex/1.6.16/questions.yaml
  28. 0 0
      test/plex/1.6.16/templates/NOTES.txt
  29. 5 1
      test/plex/1.6.16/templates/deployment.yaml
  30. 0 0
      test/plex/1.6.16/templates/probe_config.yaml
  31. 0 0
      test/plex/1.6.16/templates/service-tcp.yaml
  32. 0 0
      test/plex/1.6.16/templates/service-udp.yaml
  33. 1 0
      test/plex/1.6.16/test_values.yaml
  34. 0 0
      test/plex/1.6.16/values.yaml

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


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


+ 1 - 1
charts/plex/1.6.15/Chart.yaml → charts/plex/1.6.16/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.15
+version: 1.6.16

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


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


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


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


+ 4 - 0
test/plex/1.6.15/ix_values.yaml → charts/plex/1.6.16/ix_values.yaml

@@ -2,3 +2,7 @@ image:
   pullPolicy: IfNotPresent
   repository: plexinc/pms-docker
   tag: 1.25.2.5319-c43dc0277
+plexpassImage:
+  pullPolicy: IfNotPresent
+  repository: plexinc/pms-docker
+  tag: plexpass

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


+ 8 - 9
test/plex/1.6.15/questions.yaml → charts/plex/1.6.16/questions.yaml

@@ -1,16 +1,10 @@
 groups:
-  - name: "Container Images"
-    description: "Image to be used for container"
-  - name: "Container Entrypoint"
-    description: "Configuration of the executable that will be run when the container is started"
-  - name: "Container Environment Variables"
-    description: "Set the environment that will be visible to the container"
+  - name: "Plex Configuration"
+    description: "Configure plex deployment"
   - name: "Networking"
     description: "Configure networking for container"
   - name: "Storage"
     description: "Persist and share data that is separate from the lifecycle of the container"
-  - name: "Plex Configuration"
-    description: "Configure plex deployment"
   - name: "Workload Details"
     description: "Configure how workload should be deployed"
   - name: "Scaling/Upgrade Policy"
@@ -33,7 +27,12 @@ portals:
     path: "/web"
 
 questions:
-
+  - variable: enablePlexPass
+    label: "Use PlexPass"
+    group: "Plex Configuration"
+    schema:
+      type: boolean
+      default: false
   - variable: dnsConfig
     label: "DNS Configuration"
     group: "Advanced DNS Settings"

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


+ 5 - 1
test/plex/1.6.15/templates/deployment.yaml → charts/plex/1.6.16/templates/deployment.yaml

@@ -8,7 +8,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
     {{- end }}
       containers:
         - name: {{ .Chart.Name }}
-          {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
+          {{ if .Values.enablePlexPass }}
+            {{ include "common.containers.imageConfig" .Values.plexpassImage | nindent 10 }}
+          {{ else }}
+            {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
+          {{ end }}
           {{ include "common.containers.gpuConfiguration" .Values | nindent 10 }}
           volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
             - name: plex-probe-check

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


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


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


+ 1 - 0
charts/plex/1.6.15/test_values.yaml → charts/plex/1.6.16/test_values.yaml

@@ -29,3 +29,4 @@ plexServiceTCP:
   port: 32400
 timezone: Etc/UTC
 updateStrategy: Recreate
+enablePlexPass: false

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


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


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


+ 1 - 1
test/plex/1.6.15/Chart.yaml → test/plex/1.6.16/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.15
+version: 1.6.16

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


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


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


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


+ 4 - 0
charts/plex/1.6.15/ix_values.yaml → test/plex/1.6.16/ix_values.yaml

@@ -2,3 +2,7 @@ image:
   pullPolicy: IfNotPresent
   repository: plexinc/pms-docker
   tag: 1.25.2.5319-c43dc0277
+plexpassImage:
+  pullPolicy: IfNotPresent
+  repository: plexinc/pms-docker
+  tag: plexpass

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


+ 8 - 9
charts/plex/1.6.15/questions.yaml → test/plex/1.6.16/questions.yaml

@@ -1,16 +1,10 @@
 groups:
-  - name: "Container Images"
-    description: "Image to be used for container"
-  - name: "Container Entrypoint"
-    description: "Configuration of the executable that will be run when the container is started"
-  - name: "Container Environment Variables"
-    description: "Set the environment that will be visible to the container"
+  - name: "Plex Configuration"
+    description: "Configure plex deployment"
   - name: "Networking"
     description: "Configure networking for container"
   - name: "Storage"
     description: "Persist and share data that is separate from the lifecycle of the container"
-  - name: "Plex Configuration"
-    description: "Configure plex deployment"
   - name: "Workload Details"
     description: "Configure how workload should be deployed"
   - name: "Scaling/Upgrade Policy"
@@ -33,7 +27,12 @@ portals:
     path: "/web"
 
 questions:
-
+  - variable: enablePlexPass
+    label: "Use PlexPass"
+    group: "Plex Configuration"
+    schema:
+      type: boolean
+      default: false
   - variable: dnsConfig
     label: "DNS Configuration"
     group: "Advanced DNS Settings"

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


+ 5 - 1
charts/plex/1.6.15/templates/deployment.yaml → test/plex/1.6.16/templates/deployment.yaml

@@ -8,7 +8,11 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
     {{- end }}
       containers:
         - name: {{ .Chart.Name }}
-          {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
+          {{ if .Values.enablePlexPass }}
+            {{ include "common.containers.imageConfig" .Values.plexpassImage | nindent 10 }}
+          {{ else }}
+            {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
+          {{ end }}
           {{ include "common.containers.gpuConfiguration" .Values | nindent 10 }}
           volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
             - name: plex-probe-check

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


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


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


+ 1 - 0
test/plex/1.6.15/test_values.yaml → test/plex/1.6.16/test_values.yaml

@@ -29,3 +29,4 @@ plexServiceTCP:
   port: 32400
 timezone: Etc/UTC
 updateStrategy: Recreate
+enablePlexPass: false

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