diff --git a/charts/stable/nextcloud/Chart.yaml b/charts/stable/nextcloud/Chart.yaml index 371f019b1fc..e467a2b7320 100644 --- a/charts/stable/nextcloud/Chart.yaml +++ b/charts/stable/nextcloud/Chart.yaml @@ -1,7 +1,7 @@ kubeVersion: ">=1.24.0-0" apiVersion: v2 name: nextcloud -version: 27.0.0 +version: 27.0.1 appVersion: 28.0.0 description: A private cloud server that puts the control and security of your own data back into your hands. home: https://truecharts.org/charts/stable/nextcloud diff --git a/charts/stable/nextcloud/ci/basic-values.yaml b/charts/stable/nextcloud/ci/basic-values.yaml index e5824f12c69..5acbfd7584a 100644 --- a/charts/stable/nextcloud/ci/basic-values.yaml +++ b/charts/stable/nextcloud/ci/basic-values.yaml @@ -5,3 +5,12 @@ nextcloud: enabled: true general: accessIP: 127.0.0.1 + +ingress: + main: + enabled: true + hosts: + - host: nextcloud.example.com + paths: + - path: / + pathType: Prefix diff --git a/charts/stable/nextcloud/templates/common.yaml b/charts/stable/nextcloud/templates/common.yaml index 1eeaf033ebe..d7576a0fb57 100644 --- a/charts/stable/nextcloud/templates/common.yaml +++ b/charts/stable/nextcloud/templates/common.yaml @@ -1,3 +1,15 @@ +{{- $selector := dict -}} +{{- range $name := (list "main" "nextcloud-cron" "preview-cron") -}} + {{/* creates main: {} */}} + {{- $_ := set $selector $name dict -}} + {{/* sets main: {} to main: { main: {} } */}} + {{- $_ := set (get $selector $name) $name dict -}} +{{- end -}} + +{{- range $item := .Values.persistenceList -}} + {{- $_ := set $item "targetSelector" $selector -}} +{{- end -}} + {{/* Make sure all variables are set properly */}} {{- include "tc.v1.common.loader.init" . -}}