diff --git a/charts/stable/cloudreve/Chart.yaml b/charts/stable/cloudreve/Chart.yaml index 5ecd3e7c04d..b9b1dcbf994 100644 --- a/charts/stable/cloudreve/Chart.yaml +++ b/charts/stable/cloudreve/Chart.yaml @@ -9,7 +9,7 @@ annotations: truecharts.org/min_helm_version: "3.14" truecharts.org/train: stable apiVersion: v2 -appVersion: 3.8.3 +appVersion: 4.0.0 dependencies: - name: common version: 25.4.10 @@ -18,6 +18,13 @@ dependencies: alias: "" tags: [] import-values: [] + - name: redis + version: 16.0.5 + repository: oci://tccr.io/truecharts + condition: redis.enabled + alias: "" + tags: [] + import-values: [] deprecated: false description: Self-hosted file management and sharing system, supports multiple storage providers home: https://truecharts.org/charts/stable/cloudreve @@ -37,5 +44,5 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/cloudreve - https://hub.docker.com/r/cloudreve/cloudreve type: application -version: 8.5.1 +version: 9.0.0 diff --git a/charts/stable/cloudreve/values.yaml b/charts/stable/cloudreve/values.yaml index 430cbfa0cd2..4b57626a554 100644 --- a/charts/stable/cloudreve/values.yaml +++ b/charts/stable/cloudreve/values.yaml @@ -1,48 +1,43 @@ image: pullPolicy: IfNotPresent repository: docker.io/cloudreve/cloudreve - tag: 3.8.3@sha256:b6c8bfd463898354831c311fb3967a410714a5319b5a86c4bf5d89e0487cc5bd + tag: 4.0.0@sha256:70da0d460bc0d6e8ea7455eeb9844031dadc8f6a745efe7f250971ff4443a4cf +workload: + main: + podSpec: + containers: + main: + env: + CR_CONF_Database.Type: postgres + CR_CONF_Database.Host: "{{ .Values.cnpg.main.creds.host }}" + CR_CONF_Database.User: "{{ .Values.cnpg.main.user }}" + CR_CONF_Database.Name: "{{ .Values.cnpg.main.database }}" + CR_CONF_Database.Password: "{{ .Values.cnpg.main.creds.password }}" + CR_CONF_Database.Port: 5432 + CR_CONF_Redis.Server: '{{ .Values.redis.creds.plain | trimAll "\"" }}:6379' + CR_CONF_Redis.User: "{{ .Values.redis.redisUsername }}" + CR_CONF_Redis.Password: "{{ .Values.redis.creds.redisPassword }}" persistence: - avatarpath: - enabled: true - mountPath: /cloudreve/avatar config: enabled: true - targetSelector: - main: - main: - mountPath: /cloudreve - init: - mountPath: /conf-init - uploadpath: - enabled: true - mountPath: /cloudreve/uploads + mountPath: "/cloudreve/data" securityContext: container: readOnlyRootFilesystem: false runAsGroup: 0 runAsUser: 0 -workload: - main: - podSpec: - initContainers: - init: - enabled: true - type: init - imageSelector: image - command: - - "/bin/sh" - - "-c" - - | - set -x - ls -lasth /cloudreve - cp -a /cloudreve/cloudreve /conf-init/cloudreve - ls -lasht /conf-init - containers: - main: {} service: main: ports: main: port: 5212 targetPort: 5212 +redis: + enabled: true + includeCommon: true + redisUsername: default +cnpg: + main: + enabled: true + user: cloudreve + database: cloudreve