Przeglądaj źródła

Merge pull request #722 from truenas/nextcloud-env-vars

NAS-118055 / 22.12 / Add ability to configure environment variables for nextcloud application
M. Rehan 3 lat temu
rodzic
commit
afe07622de
56 zmienionych plików z 47 dodań i 4 usunięć
  1. 0 0
      charts/nextcloud/1.6.9/.helmignore
  2. 0 0
      charts/nextcloud/1.6.9/Chart.lock
  3. 1 1
      charts/nextcloud/1.6.9/Chart.yaml
  4. 0 0
      charts/nextcloud/1.6.9/README.md
  5. 0 0
      charts/nextcloud/1.6.9/app-readme.md
  6. 0 0
      charts/nextcloud/1.6.9/charts/common-2207.0.0.tgz
  7. 0 0
      charts/nextcloud/1.6.9/ix_values.yaml
  8. 0 0
      charts/nextcloud/1.6.9/migrations/migrate_from_1.1.0
  9. 21 0
      charts/nextcloud/1.6.9/questions.yaml
  10. 0 0
      charts/nextcloud/1.6.9/requirements.lock
  11. 0 0
      charts/nextcloud/1.6.9/templates/NOTES.txt
  12. 0 0
      charts/nextcloud/1.6.9/templates/_nginx.tpl
  13. 0 0
      charts/nextcloud/1.6.9/templates/_postgres.tpl
  14. 0 0
      charts/nextcloud/1.6.9/templates/backup-postgres-config.yaml
  15. 0 0
      charts/nextcloud/1.6.9/templates/backup-postgres-hook.yaml
  16. 0 0
      charts/nextcloud/1.6.9/templates/cronjob.yaml
  17. 1 1
      charts/nextcloud/1.6.9/templates/deployment.yaml
  18. 0 0
      charts/nextcloud/1.6.9/templates/nginx-configmap.yaml
  19. 0 0
      charts/nextcloud/1.6.9/templates/nginx-secret.yaml
  20. 0 0
      charts/nextcloud/1.6.9/templates/nuke-deployments-hook.yaml
  21. 0 0
      charts/nextcloud/1.6.9/templates/postgres-deployment.yaml
  22. 0 0
      charts/nextcloud/1.6.9/templates/postgres-secret.yaml
  23. 0 0
      charts/nextcloud/1.6.9/templates/postgres-service.yaml
  24. 0 0
      charts/nextcloud/1.6.9/templates/secrets.yaml
  25. 0 0
      charts/nextcloud/1.6.9/templates/service.yaml
  26. 0 0
      charts/nextcloud/1.6.9/templates/serviceaccount.yaml
  27. 0 0
      charts/nextcloud/1.6.9/templates/tests/deployment-check.yaml
  28. 1 0
      charts/nextcloud/1.6.9/test_values.yaml
  29. 0 0
      test/nextcloud/1.6.9/.helmignore
  30. 0 0
      test/nextcloud/1.6.9/Chart.lock
  31. 1 1
      test/nextcloud/1.6.9/Chart.yaml
  32. 0 0
      test/nextcloud/1.6.9/README.md
  33. 0 0
      test/nextcloud/1.6.9/app-readme.md
  34. 0 0
      test/nextcloud/1.6.9/charts/common-2207.0.0.tgz
  35. 0 0
      test/nextcloud/1.6.9/ix_values.yaml
  36. 0 0
      test/nextcloud/1.6.9/migrations/migrate_from_1.1.0
  37. 21 0
      test/nextcloud/1.6.9/questions.yaml
  38. 0 0
      test/nextcloud/1.6.9/requirements.lock
  39. 0 0
      test/nextcloud/1.6.9/templates/NOTES.txt
  40. 0 0
      test/nextcloud/1.6.9/templates/_nginx.tpl
  41. 0 0
      test/nextcloud/1.6.9/templates/_postgres.tpl
  42. 0 0
      test/nextcloud/1.6.9/templates/backup-postgres-config.yaml
  43. 0 0
      test/nextcloud/1.6.9/templates/backup-postgres-hook.yaml
  44. 0 0
      test/nextcloud/1.6.9/templates/cronjob.yaml
  45. 1 1
      test/nextcloud/1.6.9/templates/deployment.yaml
  46. 0 0
      test/nextcloud/1.6.9/templates/nginx-configmap.yaml
  47. 0 0
      test/nextcloud/1.6.9/templates/nginx-secret.yaml
  48. 0 0
      test/nextcloud/1.6.9/templates/nuke-deployments-hook.yaml
  49. 0 0
      test/nextcloud/1.6.9/templates/postgres-deployment.yaml
  50. 0 0
      test/nextcloud/1.6.9/templates/postgres-secret.yaml
  51. 0 0
      test/nextcloud/1.6.9/templates/postgres-service.yaml
  52. 0 0
      test/nextcloud/1.6.9/templates/secrets.yaml
  53. 0 0
      test/nextcloud/1.6.9/templates/service.yaml
  54. 0 0
      test/nextcloud/1.6.9/templates/serviceaccount.yaml
  55. 0 0
      test/nextcloud/1.6.9/templates/tests/deployment-check.yaml
  56. 0 0
      test/nextcloud/1.6.9/test_values.yaml

+ 0 - 0
charts/nextcloud/1.6.8/.helmignore → charts/nextcloud/1.6.9/.helmignore


+ 0 - 0
charts/nextcloud/1.6.8/Chart.lock → charts/nextcloud/1.6.9/Chart.lock


+ 1 - 1
charts/nextcloud/1.6.8/Chart.yaml → charts/nextcloud/1.6.9/Chart.yaml

@@ -19,4 +19,4 @@ sources:
 - https://github.com/nextcloud/docker
 - https://github.com/nextcloud/helm
 upstream_version: 2.3.2
-version: 1.6.8
+version: 1.6.9

+ 0 - 0
charts/nextcloud/1.6.8/README.md → charts/nextcloud/1.6.9/README.md


+ 0 - 0
charts/nextcloud/1.6.8/app-readme.md → charts/nextcloud/1.6.9/app-readme.md


+ 0 - 0
charts/nextcloud/1.6.8/charts/common-2207.0.0.tgz → charts/nextcloud/1.6.9/charts/common-2207.0.0.tgz


+ 0 - 0
charts/nextcloud/1.6.8/ix_values.yaml → charts/nextcloud/1.6.9/ix_values.yaml


+ 0 - 0
charts/nextcloud/1.6.8/migrations/migrate_from_1.1.0 → charts/nextcloud/1.6.9/migrations/migrate_from_1.1.0


+ 21 - 0
test/nextcloud/1.6.8/questions.yaml → charts/nextcloud/1.6.9/questions.yaml

@@ -327,3 +327,24 @@ questions:
       show_if: [["enableResourceLimits", "=", true]]
       valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
       default: "8Gi"
+
+  - variable: environmentVariables
+    label: "Nextcloud environment"
+    group: "Nextcloud Configuration"
+    schema:
+      type: list
+      default: []
+      items:
+        - variable: environmentVariable
+          label: "Environment Variable"
+          schema:
+            type: dict
+            attrs:
+              - variable: name
+                label: "Name"
+                schema:
+                  type: string
+              - variable: value
+                label: "Value"
+                schema:
+                  type: string

+ 0 - 0
charts/nextcloud/1.6.8/requirements.lock → charts/nextcloud/1.6.9/requirements.lock


+ 0 - 0
charts/nextcloud/1.6.8/templates/NOTES.txt → charts/nextcloud/1.6.9/templates/NOTES.txt


+ 0 - 0
charts/nextcloud/1.6.8/templates/_nginx.tpl → charts/nextcloud/1.6.9/templates/_nginx.tpl


+ 0 - 0
charts/nextcloud/1.6.8/templates/_postgres.tpl → charts/nextcloud/1.6.9/templates/_postgres.tpl


+ 0 - 0
charts/nextcloud/1.6.8/templates/backup-postgres-config.yaml → charts/nextcloud/1.6.9/templates/backup-postgres-config.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/backup-postgres-hook.yaml → charts/nextcloud/1.6.9/templates/backup-postgres-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/cronjob.yaml → charts/nextcloud/1.6.9/templates/cronjob.yaml


+ 1 - 1
test/nextcloud/1.6.8/templates/deployment.yaml → charts/nextcloud/1.6.9/templates/deployment.yaml

@@ -31,8 +31,8 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
           {{ include "common.resources.limitation" . | nindent 8 }}
         {{ include "common.containers.imageConfig" .Values.image | nindent 8 }}
         env: {{ include "postgres.envVariableConfiguration" $postgres_values | nindent 10 }}
-        {{ $envList := list }}
         {{ $secretName := (include "common.names.fullname" .) }}
+        {{ $envList := (default list .Values.environmentVariables) }}
         {{ $envList = mustAppend $envList (dict "name" "POSTGRES_HOST" "value" (printf "%s:5432" (include "common.names.fullname" $postgres_values))) }}
         {{ $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "value" (include "postgres.DatabaseName" .)) }}
         {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_DATA_DIR" "value" .Values.nextcloud.datadir) }}

+ 0 - 0
charts/nextcloud/1.6.8/templates/nginx-configmap.yaml → charts/nextcloud/1.6.9/templates/nginx-configmap.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/nginx-secret.yaml → charts/nextcloud/1.6.9/templates/nginx-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/nuke-deployments-hook.yaml → charts/nextcloud/1.6.9/templates/nuke-deployments-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/postgres-deployment.yaml → charts/nextcloud/1.6.9/templates/postgres-deployment.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/postgres-secret.yaml → charts/nextcloud/1.6.9/templates/postgres-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/postgres-service.yaml → charts/nextcloud/1.6.9/templates/postgres-service.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/secrets.yaml → charts/nextcloud/1.6.9/templates/secrets.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/service.yaml → charts/nextcloud/1.6.9/templates/service.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/serviceaccount.yaml → charts/nextcloud/1.6.9/templates/serviceaccount.yaml


+ 0 - 0
charts/nextcloud/1.6.8/templates/tests/deployment-check.yaml → charts/nextcloud/1.6.9/templates/tests/deployment-check.yaml


+ 1 - 0
test/nextcloud/1.6.8/test_values.yaml → charts/nextcloud/1.6.9/test_values.yaml

@@ -42,3 +42,4 @@ service:
   nodePort: 31000
 updateStrategy: Recreate
 useServiceNameForHost: true
+

+ 0 - 0
test/nextcloud/1.6.8/.helmignore → test/nextcloud/1.6.9/.helmignore


+ 0 - 0
test/nextcloud/1.6.8/Chart.lock → test/nextcloud/1.6.9/Chart.lock


+ 1 - 1
test/nextcloud/1.6.8/Chart.yaml → test/nextcloud/1.6.9/Chart.yaml

@@ -19,4 +19,4 @@ sources:
 - https://github.com/nextcloud/docker
 - https://github.com/nextcloud/helm
 upstream_version: 2.3.2
-version: 1.6.8
+version: 1.6.9

+ 0 - 0
test/nextcloud/1.6.8/README.md → test/nextcloud/1.6.9/README.md


+ 0 - 0
test/nextcloud/1.6.8/app-readme.md → test/nextcloud/1.6.9/app-readme.md


+ 0 - 0
test/nextcloud/1.6.8/charts/common-2207.0.0.tgz → test/nextcloud/1.6.9/charts/common-2207.0.0.tgz


+ 0 - 0
test/nextcloud/1.6.8/ix_values.yaml → test/nextcloud/1.6.9/ix_values.yaml


+ 0 - 0
test/nextcloud/1.6.8/migrations/migrate_from_1.1.0 → test/nextcloud/1.6.9/migrations/migrate_from_1.1.0


+ 21 - 0
charts/nextcloud/1.6.8/questions.yaml → test/nextcloud/1.6.9/questions.yaml

@@ -327,3 +327,24 @@ questions:
       show_if: [["enableResourceLimits", "=", true]]
       valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
       default: "8Gi"
+
+  - variable: environmentVariables
+    label: "Nextcloud environment"
+    group: "Nextcloud Configuration"
+    schema:
+      type: list
+      default: []
+      items:
+        - variable: environmentVariable
+          label: "Environment Variable"
+          schema:
+            type: dict
+            attrs:
+              - variable: name
+                label: "Name"
+                schema:
+                  type: string
+              - variable: value
+                label: "Value"
+                schema:
+                  type: string

+ 0 - 0
test/nextcloud/1.6.8/requirements.lock → test/nextcloud/1.6.9/requirements.lock


+ 0 - 0
test/nextcloud/1.6.8/templates/NOTES.txt → test/nextcloud/1.6.9/templates/NOTES.txt


+ 0 - 0
test/nextcloud/1.6.8/templates/_nginx.tpl → test/nextcloud/1.6.9/templates/_nginx.tpl


+ 0 - 0
test/nextcloud/1.6.8/templates/_postgres.tpl → test/nextcloud/1.6.9/templates/_postgres.tpl


+ 0 - 0
test/nextcloud/1.6.8/templates/backup-postgres-config.yaml → test/nextcloud/1.6.9/templates/backup-postgres-config.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/backup-postgres-hook.yaml → test/nextcloud/1.6.9/templates/backup-postgres-hook.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/cronjob.yaml → test/nextcloud/1.6.9/templates/cronjob.yaml


+ 1 - 1
charts/nextcloud/1.6.8/templates/deployment.yaml → test/nextcloud/1.6.9/templates/deployment.yaml

@@ -31,8 +31,8 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
           {{ include "common.resources.limitation" . | nindent 8 }}
         {{ include "common.containers.imageConfig" .Values.image | nindent 8 }}
         env: {{ include "postgres.envVariableConfiguration" $postgres_values | nindent 10 }}
-        {{ $envList := list }}
         {{ $secretName := (include "common.names.fullname" .) }}
+        {{ $envList := (default list .Values.environmentVariables) }}
         {{ $envList = mustAppend $envList (dict "name" "POSTGRES_HOST" "value" (printf "%s:5432" (include "common.names.fullname" $postgres_values))) }}
         {{ $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "value" (include "postgres.DatabaseName" .)) }}
         {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_DATA_DIR" "value" .Values.nextcloud.datadir) }}

+ 0 - 0
test/nextcloud/1.6.8/templates/nginx-configmap.yaml → test/nextcloud/1.6.9/templates/nginx-configmap.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/nginx-secret.yaml → test/nextcloud/1.6.9/templates/nginx-secret.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/nuke-deployments-hook.yaml → test/nextcloud/1.6.9/templates/nuke-deployments-hook.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/postgres-deployment.yaml → test/nextcloud/1.6.9/templates/postgres-deployment.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/postgres-secret.yaml → test/nextcloud/1.6.9/templates/postgres-secret.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/postgres-service.yaml → test/nextcloud/1.6.9/templates/postgres-service.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/secrets.yaml → test/nextcloud/1.6.9/templates/secrets.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/service.yaml → test/nextcloud/1.6.9/templates/service.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/serviceaccount.yaml → test/nextcloud/1.6.9/templates/serviceaccount.yaml


+ 0 - 0
test/nextcloud/1.6.8/templates/tests/deployment-check.yaml → test/nextcloud/1.6.9/templates/tests/deployment-check.yaml


+ 0 - 0
charts/nextcloud/1.6.8/test_values.yaml → test/nextcloud/1.6.9/test_values.yaml