Skip to content

Commit e61d4c4

Browse files
authored
Merge pull request #3 from rocket-admin/postgres-secret-lookip
lookup secret
2 parents 77b2185 + abe5b77 commit e61d4c4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

charts/rocketadmin/Chart.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ name: rocketadmin
33
description: Rocketadmin is a web-based application for creating admin panels for your projects.
44
type: application
55

6-
# This is the chart version. This version number should be incremented each time you make changes
7-
# to the chart and its templates, including the app version.
8-
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9-
version: 0.1.11
6+
version: 0.1.12
107
home: https://rocketadmin.com
118
sources:
129
- https://github.com/rocket-admin/rocketadmin

charts/rocketadmin/templates/postgres-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ metadata:
99
{{- include "rocketadmin.labels" . | nindent 4 }}
1010
type: Opaque
1111
stringData:
12-
password: {{ include "rocketadmin.dbPassword" . }}
12+
password: {{.Values.auth.password}}
1313
postgres-password: {{ include "rocketadmin.dbPassword" . }}

charts/rocketadmin/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ type: Opaque
1111
stringData:
1212
JWT_SECRET: {{ include "chrt-6456.password" .}}
1313
PRIVATE_KEY: {{ include "chrt-6456.password" .}}
14-
DATABASE_URL: postgresql://rocketadmin:{{ include "rocketadmin.dbPassword" . }}@{{ include "rocketadmin.postgresql.fullname" . }}/rocketadmin
14+
DATABASE_URL: postgresql://rocketadmin:{{.Values.auth.password}}@{{ include "rocketadmin.postgresql.fullname" . }}/rocketadmin

charts/rocketadmin/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ image:
1313
imagePullSecrets: []
1414
nameOverride: ""
1515
fullnameOverride: ""
16+
auth:
17+
password: changeme
1618

1719
serviceAccount:
1820
# Specifies whether a service account should be created
@@ -86,3 +88,4 @@ postgresql:
8688
auth:
8789
username: rocketadmin
8890
existingSecret: rocketadmin-postgresql-secret
91+
database: rocketadmin

0 commit comments

Comments
 (0)