瀏覽代碼

Merge pull request #936 from truenas/fix-nextcloud-secret

NAS-119496 / 23.10 / fix nextcloud secret and update
Stavros Kois 2 年之前
父節點
當前提交
0b2d8e5d27
共有 58 個文件被更改,包括 56 次插入38 次删除
  1. 0 13
      charts/nextcloud/1.6.14/templates/postgres-secret.yaml
  2. 0 0
      charts/nextcloud/1.6.15/.helmignore
  3. 0 0
      charts/nextcloud/1.6.15/Chart.lock
  4. 2 2
      charts/nextcloud/1.6.15/Chart.yaml
  5. 0 0
      charts/nextcloud/1.6.15/README.md
  6. 0 0
      charts/nextcloud/1.6.15/app-readme.md
  7. 0 0
      charts/nextcloud/1.6.15/charts/common-2207.0.0.tgz
  8. 2 2
      charts/nextcloud/1.6.15/ix_values.yaml
  9. 0 0
      charts/nextcloud/1.6.15/migrations/migrate_from_1.1.0
  10. 0 0
      charts/nextcloud/1.6.15/questions.yaml
  11. 0 0
      charts/nextcloud/1.6.15/requirements.lock
  12. 0 0
      charts/nextcloud/1.6.15/templates/NOTES.txt
  13. 0 0
      charts/nextcloud/1.6.15/templates/_nginx.tpl
  14. 0 0
      charts/nextcloud/1.6.15/templates/_postgres.tpl
  15. 0 0
      charts/nextcloud/1.6.15/templates/backup-postgres-config.yaml
  16. 0 0
      charts/nextcloud/1.6.15/templates/backup-postgres-hook.yaml
  17. 0 0
      charts/nextcloud/1.6.15/templates/cronjob.yaml
  18. 0 0
      charts/nextcloud/1.6.15/templates/deployment.yaml
  19. 0 0
      charts/nextcloud/1.6.15/templates/nginx-configmap.yaml
  20. 0 0
      charts/nextcloud/1.6.15/templates/nginx-secret.yaml
  21. 0 0
      charts/nextcloud/1.6.15/templates/nuke-deployments-hook.yaml
  22. 0 0
      charts/nextcloud/1.6.15/templates/postgres-deployment.yaml
  23. 22 0
      charts/nextcloud/1.6.15/templates/postgres-secret.yaml
  24. 0 0
      charts/nextcloud/1.6.15/templates/postgres-service.yaml
  25. 0 0
      charts/nextcloud/1.6.15/templates/secrets.yaml
  26. 0 0
      charts/nextcloud/1.6.15/templates/service.yaml
  27. 0 0
      charts/nextcloud/1.6.15/templates/serviceaccount.yaml
  28. 0 0
      charts/nextcloud/1.6.15/templates/tests/deployment-check.yaml
  29. 2 2
      charts/nextcloud/1.6.15/test_values.yaml
  30. 0 13
      test/nextcloud/1.6.14/templates/postgres-secret.yaml
  31. 0 0
      test/nextcloud/1.6.15/.helmignore
  32. 0 0
      test/nextcloud/1.6.15/Chart.lock
  33. 2 2
      test/nextcloud/1.6.15/Chart.yaml
  34. 0 0
      test/nextcloud/1.6.15/README.md
  35. 0 0
      test/nextcloud/1.6.15/app-readme.md
  36. 0 0
      test/nextcloud/1.6.15/charts/common-2207.0.0.tgz
  37. 2 2
      test/nextcloud/1.6.15/ix_values.yaml
  38. 0 0
      test/nextcloud/1.6.15/migrations/migrate_from_1.1.0
  39. 0 0
      test/nextcloud/1.6.15/questions.yaml
  40. 0 0
      test/nextcloud/1.6.15/requirements.lock
  41. 0 0
      test/nextcloud/1.6.15/templates/NOTES.txt
  42. 0 0
      test/nextcloud/1.6.15/templates/_nginx.tpl
  43. 0 0
      test/nextcloud/1.6.15/templates/_postgres.tpl
  44. 0 0
      test/nextcloud/1.6.15/templates/backup-postgres-config.yaml
  45. 0 0
      test/nextcloud/1.6.15/templates/backup-postgres-hook.yaml
  46. 0 0
      test/nextcloud/1.6.15/templates/cronjob.yaml
  47. 0 0
      test/nextcloud/1.6.15/templates/deployment.yaml
  48. 0 0
      test/nextcloud/1.6.15/templates/nginx-configmap.yaml
  49. 0 0
      test/nextcloud/1.6.15/templates/nginx-secret.yaml
  50. 0 0
      test/nextcloud/1.6.15/templates/nuke-deployments-hook.yaml
  51. 0 0
      test/nextcloud/1.6.15/templates/postgres-deployment.yaml
  52. 22 0
      test/nextcloud/1.6.15/templates/postgres-secret.yaml
  53. 0 0
      test/nextcloud/1.6.15/templates/postgres-service.yaml
  54. 0 0
      test/nextcloud/1.6.15/templates/secrets.yaml
  55. 0 0
      test/nextcloud/1.6.15/templates/service.yaml
  56. 0 0
      test/nextcloud/1.6.15/templates/serviceaccount.yaml
  57. 0 0
      test/nextcloud/1.6.15/templates/tests/deployment-check.yaml
  58. 2 2
      test/nextcloud/1.6.15/test_values.yaml

+ 0 - 13
charts/nextcloud/1.6.14/templates/postgres-secret.yaml

@@ -1,13 +0,0 @@
-apiVersion: v1
-kind: Secret
-metadata:
-  name: db-details
-data:
-  db-user: postgres
-  {{- if .Release.IsInstall }}
-  db-password: {{ randAlphaNum 15 | b64enc | quote }}
-  {{ else }}
-  # `index` function is necessary because the property name contains a dash.
-  # Otherwise (...).data.db_password would have worked too.
-  db-password:  {{ index (lookup "v1" "Secret" .Release.Namespace "db-details").data "db-password" }}
-  {{ end }}

+ 0 - 0
charts/nextcloud/1.6.14/.helmignore → charts/nextcloud/1.6.15/.helmignore


+ 0 - 0
charts/nextcloud/1.6.14/Chart.lock → charts/nextcloud/1.6.15/Chart.lock


+ 2 - 2
charts/nextcloud/1.6.14/Chart.yaml → charts/nextcloud/1.6.15/Chart.yaml

@@ -1,5 +1,5 @@
 apiVersion: v2
-appVersion: 25.0.1
+appVersion: 25.0.2
 dependencies:
 - name: common
   repository: file://../../../library/common/2207.0.0
@@ -19,4 +19,4 @@ sources:
 - https://github.com/nextcloud/docker
 - https://github.com/nextcloud/helm
 upstream_version: 2.3.2
-version: 1.6.14
+version: 1.6.15

+ 0 - 0
charts/nextcloud/1.6.14/README.md → charts/nextcloud/1.6.15/README.md


+ 0 - 0
charts/nextcloud/1.6.14/app-readme.md → charts/nextcloud/1.6.15/app-readme.md


+ 0 - 0
charts/nextcloud/1.6.14/charts/common-2207.0.0.tgz → charts/nextcloud/1.6.15/charts/common-2207.0.0.tgz


+ 2 - 2
test/nextcloud/1.6.14/ix_values.yaml → charts/nextcloud/1.6.15/ix_values.yaml

@@ -1,10 +1,10 @@
 image:
   pullPolicy: IfNotPresent
   repository: nextcloud
-  tag: 25.0.1
+  tag: 25.0.2
 nginx:
   image:
     pullPolicy: IfNotPresent
     repository: nginx
-    tag: 1.21.3
+    tag: 1.23.3
 useServiceNameForHost: false

+ 0 - 0
charts/nextcloud/1.6.14/migrations/migrate_from_1.1.0 → charts/nextcloud/1.6.15/migrations/migrate_from_1.1.0


+ 0 - 0
charts/nextcloud/1.6.14/questions.yaml → charts/nextcloud/1.6.15/questions.yaml


+ 0 - 0
charts/nextcloud/1.6.14/requirements.lock → charts/nextcloud/1.6.15/requirements.lock


+ 0 - 0
charts/nextcloud/1.6.14/templates/NOTES.txt → charts/nextcloud/1.6.15/templates/NOTES.txt


+ 0 - 0
charts/nextcloud/1.6.14/templates/_nginx.tpl → charts/nextcloud/1.6.15/templates/_nginx.tpl


+ 0 - 0
charts/nextcloud/1.6.14/templates/_postgres.tpl → charts/nextcloud/1.6.15/templates/_postgres.tpl


+ 0 - 0
charts/nextcloud/1.6.14/templates/backup-postgres-config.yaml → charts/nextcloud/1.6.15/templates/backup-postgres-config.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/backup-postgres-hook.yaml → charts/nextcloud/1.6.15/templates/backup-postgres-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/cronjob.yaml → charts/nextcloud/1.6.15/templates/cronjob.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/deployment.yaml → charts/nextcloud/1.6.15/templates/deployment.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/nginx-configmap.yaml → charts/nextcloud/1.6.15/templates/nginx-configmap.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/nginx-secret.yaml → charts/nextcloud/1.6.15/templates/nginx-secret.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/nuke-deployments-hook.yaml → charts/nextcloud/1.6.15/templates/nuke-deployments-hook.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/postgres-deployment.yaml → charts/nextcloud/1.6.15/templates/postgres-deployment.yaml


+ 22 - 0
charts/nextcloud/1.6.15/templates/postgres-secret.yaml

@@ -0,0 +1,22 @@
+{{- $secretName := "db-details" }}
+apiVersion: v1
+kind: Secret
+metadata:
+  name: {{ $secretName }}
+data:
+  {{/*
+  Lookup for the user shouldn't be needed in normal circumstances
+  But there was a typo before that resulted to a db-user with weird
+  characters. So to keep that user for existing installations we retrieve
+  it from the existing secret.
+  */}}
+  {{ with (lookup "v1" "Secret" .Release.Namespace $secretName)}}
+  db-user: {{ index .data "db-user" }}
+  {{ else }}
+  db-user: {{ (include "postgres.DatabaseName" .Values ) | b64enc }}
+  {{ end }}
+  {{ with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
+  db-password: {{ index .data "db-password" }}
+  {{ else }}
+  db-password: {{ randAlphaNum 15 | b64enc }}
+  {{ end }}

+ 0 - 0
charts/nextcloud/1.6.14/templates/postgres-service.yaml → charts/nextcloud/1.6.15/templates/postgres-service.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/secrets.yaml → charts/nextcloud/1.6.15/templates/secrets.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/service.yaml → charts/nextcloud/1.6.15/templates/service.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/serviceaccount.yaml → charts/nextcloud/1.6.15/templates/serviceaccount.yaml


+ 0 - 0
charts/nextcloud/1.6.14/templates/tests/deployment-check.yaml → charts/nextcloud/1.6.15/templates/tests/deployment-check.yaml


+ 2 - 2
test/nextcloud/1.6.14/test_values.yaml → charts/nextcloud/1.6.15/test_values.yaml

@@ -12,7 +12,7 @@ environmentVariables: []
 image:
   pullPolicy: IfNotPresent
   repository: nextcloud
-  tag: 25.0.1
+  tag: 25.0.2
 ixChartContext: {}
 nextcloud:
   datadir: /var/www/html/data
@@ -23,7 +23,7 @@ nginx:
   image:
     pullPolicy: IfNotPresent
     repository: nginx
-    tag: 1.21.3
+    tag: 1.23.3
 postgresAppVolumeMounts:
   postgres-backup:
     emptyDir: true

+ 0 - 13
test/nextcloud/1.6.14/templates/postgres-secret.yaml

@@ -1,13 +0,0 @@
-apiVersion: v1
-kind: Secret
-metadata:
-  name: db-details
-data:
-  db-user: postgres
-  {{- if .Release.IsInstall }}
-  db-password: {{ randAlphaNum 15 | b64enc | quote }}
-  {{ else }}
-  # `index` function is necessary because the property name contains a dash.
-  # Otherwise (...).data.db_password would have worked too.
-  db-password:  {{ index (lookup "v1" "Secret" .Release.Namespace "db-details").data "db-password" }}
-  {{ end }}

+ 0 - 0
test/nextcloud/1.6.14/.helmignore → test/nextcloud/1.6.15/.helmignore


+ 0 - 0
test/nextcloud/1.6.14/Chart.lock → test/nextcloud/1.6.15/Chart.lock


+ 2 - 2
test/nextcloud/1.6.14/Chart.yaml → test/nextcloud/1.6.15/Chart.yaml

@@ -1,5 +1,5 @@
 apiVersion: v2
-appVersion: 25.0.1
+appVersion: 25.0.2
 dependencies:
 - name: common
   repository: file://../../../library/common/2207.0.0
@@ -19,4 +19,4 @@ sources:
 - https://github.com/nextcloud/docker
 - https://github.com/nextcloud/helm
 upstream_version: 2.3.2
-version: 1.6.14
+version: 1.6.15

+ 0 - 0
test/nextcloud/1.6.14/README.md → test/nextcloud/1.6.15/README.md


+ 0 - 0
test/nextcloud/1.6.14/app-readme.md → test/nextcloud/1.6.15/app-readme.md


+ 0 - 0
test/nextcloud/1.6.14/charts/common-2207.0.0.tgz → test/nextcloud/1.6.15/charts/common-2207.0.0.tgz


+ 2 - 2
charts/nextcloud/1.6.14/ix_values.yaml → test/nextcloud/1.6.15/ix_values.yaml

@@ -1,10 +1,10 @@
 image:
   pullPolicy: IfNotPresent
   repository: nextcloud
-  tag: 25.0.1
+  tag: 25.0.2
 nginx:
   image:
     pullPolicy: IfNotPresent
     repository: nginx
-    tag: 1.21.3
+    tag: 1.23.3
 useServiceNameForHost: false

+ 0 - 0
test/nextcloud/1.6.14/migrations/migrate_from_1.1.0 → test/nextcloud/1.6.15/migrations/migrate_from_1.1.0


+ 0 - 0
test/nextcloud/1.6.14/questions.yaml → test/nextcloud/1.6.15/questions.yaml


+ 0 - 0
test/nextcloud/1.6.14/requirements.lock → test/nextcloud/1.6.15/requirements.lock


+ 0 - 0
test/nextcloud/1.6.14/templates/NOTES.txt → test/nextcloud/1.6.15/templates/NOTES.txt


+ 0 - 0
test/nextcloud/1.6.14/templates/_nginx.tpl → test/nextcloud/1.6.15/templates/_nginx.tpl


+ 0 - 0
test/nextcloud/1.6.14/templates/_postgres.tpl → test/nextcloud/1.6.15/templates/_postgres.tpl


+ 0 - 0
test/nextcloud/1.6.14/templates/backup-postgres-config.yaml → test/nextcloud/1.6.15/templates/backup-postgres-config.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/backup-postgres-hook.yaml → test/nextcloud/1.6.15/templates/backup-postgres-hook.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/cronjob.yaml → test/nextcloud/1.6.15/templates/cronjob.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/deployment.yaml → test/nextcloud/1.6.15/templates/deployment.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/nginx-configmap.yaml → test/nextcloud/1.6.15/templates/nginx-configmap.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/nginx-secret.yaml → test/nextcloud/1.6.15/templates/nginx-secret.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/nuke-deployments-hook.yaml → test/nextcloud/1.6.15/templates/nuke-deployments-hook.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/postgres-deployment.yaml → test/nextcloud/1.6.15/templates/postgres-deployment.yaml


+ 22 - 0
test/nextcloud/1.6.15/templates/postgres-secret.yaml

@@ -0,0 +1,22 @@
+{{- $secretName := "db-details" }}
+apiVersion: v1
+kind: Secret
+metadata:
+  name: {{ $secretName }}
+data:
+  {{/*
+  Lookup for the user shouldn't be needed in normal circumstances
+  But there was a typo before that resulted to a db-user with weird
+  characters. So to keep that user for existing installations we retrieve
+  it from the existing secret.
+  */}}
+  {{ with (lookup "v1" "Secret" .Release.Namespace $secretName)}}
+  db-user: {{ index .data "db-user" }}
+  {{ else }}
+  db-user: {{ (include "postgres.DatabaseName" .Values ) | b64enc }}
+  {{ end }}
+  {{ with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
+  db-password: {{ index .data "db-password" }}
+  {{ else }}
+  db-password: {{ randAlphaNum 15 | b64enc }}
+  {{ end }}

+ 0 - 0
test/nextcloud/1.6.14/templates/postgres-service.yaml → test/nextcloud/1.6.15/templates/postgres-service.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/secrets.yaml → test/nextcloud/1.6.15/templates/secrets.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/service.yaml → test/nextcloud/1.6.15/templates/service.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/serviceaccount.yaml → test/nextcloud/1.6.15/templates/serviceaccount.yaml


+ 0 - 0
test/nextcloud/1.6.14/templates/tests/deployment-check.yaml → test/nextcloud/1.6.15/templates/tests/deployment-check.yaml


+ 2 - 2
charts/nextcloud/1.6.14/test_values.yaml → test/nextcloud/1.6.15/test_values.yaml

@@ -12,7 +12,7 @@ environmentVariables: []
 image:
   pullPolicy: IfNotPresent
   repository: nextcloud
-  tag: 25.0.1
+  tag: 25.0.2
 ixChartContext: {}
 nextcloud:
   datadir: /var/www/html/data
@@ -23,7 +23,7 @@ nginx:
   image:
     pullPolicy: IfNotPresent
     repository: nginx
-    tag: 1.21.3
+    tag: 1.23.3
 postgresAppVolumeMounts:
   postgres-backup:
     emptyDir: true