From e9817ffd1d38db9525338e965248f7375a592857 Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Thu, 21 Mar 2024 11:35:11 +0100 Subject: [PATCH] fix(helm): fix label and username for external database (#72) --- charts/policy-hub/templates/secret-external-db.yaml | 2 +- charts/policy-hub/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/policy-hub/templates/secret-external-db.yaml b/charts/policy-hub/templates/secret-external-db.yaml index 550d37a..a740c9e 100644 --- a/charts/policy-hub/templates/secret-external-db.yaml +++ b/charts/policy-hub/templates/secret-external-db.yaml @@ -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) }} diff --git a/charts/policy-hub/values.yaml b/charts/policy-hub/values.yaml index 3d09d60..e70ee71 100644 --- a/charts/policy-hub/values.yaml +++ b/charts/policy-hub/values.yaml @@ -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'.