mirror of
https://github.com/truenas/charts.git
synced 2026-05-03 14:42:13 +08:00
fix nextcloud secret and update
This commit is contained in:
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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
|
||||
12
charts/nextcloud/1.6.15/templates/postgres-secret.yaml
Normal file
12
charts/nextcloud/1.6.15/templates/postgres-secret.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- $secretName := "db-details" }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ $secretName }}
|
||||
data:
|
||||
db-user: {{ "postgres" | b64enc }}
|
||||
{{ with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
|
||||
db-password: {{ index .data "db-password" }}
|
||||
{{ else }}
|
||||
db-password: {{ randAlphaNum 15 | b64enc }}
|
||||
{{ end }}
|
||||
@@ -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
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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
|
||||
12
test/nextcloud/1.6.15/templates/postgres-secret.yaml
Normal file
12
test/nextcloud/1.6.15/templates/postgres-secret.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- $secretName := "db-details" }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ $secretName }}
|
||||
data:
|
||||
db-user: {{ "postgres" | b64enc }}
|
||||
{{ with (lookup "v1" "Secret" .Release.Namespace $secretName) }}
|
||||
db-password: {{ index .data "db-password" }}
|
||||
{{ else }}
|
||||
db-password: {{ randAlphaNum 15 | b64enc }}
|
||||
{{ end }}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user