Skip to content

Commit

Permalink
fix(helm): fix label and username for external database
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy committed Mar 20, 2024
1 parent 5fe6ff9 commit 743687e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/policy-hub/templates/secret-external-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
name: {{ .Values.externalDatabase.existingSecret }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "portal.labels" . | nindent 4 }}
{{- include "phub.labels" . | nindent 4 }}
type: Opaque
# use lookup function to check if secret exists
{{- $secret := (lookup "v1" "Secret" .Release.Namespace .Values.externalDatabase.existingSecret) }}
Expand Down
4 changes: 2 additions & 2 deletions charts/policy-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ postgresql:
# host: "policy-hub-postgresql-primary",
# port: 5432;
# Switch to enable or disable the PostgreSQL helm chart.
enabled: true
enabled: false
# -- Setting image tag to major to get latest minor updates
image:
tag: "15-debian-11"
Expand Down Expand Up @@ -119,7 +119,7 @@ externalDatabase:
# -- Database port number.
port: 5432
# -- Non-root username for policy-hub.
user: "hub"
username: "hub"
# -- Database name.
database: "policy-hub"
# -- Password for the non-root username (default 'hub'). Secret-key 'password'.
Expand Down

0 comments on commit 743687e

Please sign in to comment.