diff --git a/charts/prefect-server/README.md b/charts/prefect-server/README.md index adeadfd6..08cd5982 100644 --- a/charts/prefect-server/README.md +++ b/charts/prefect-server/README.md @@ -45,9 +45,15 @@ prefect-server: postgresql: # Disable the objects from the bundled PostgreSQL chart enabled: false + auth: - # Provide the name of an existing secret following the instructions above. + # Option 1: provide the name of an existing secret following the instructions above. existingSecret: + + # Option 2: provide the connection string details directly + username: myuser + password: mypass + database: mydb ``` Two secrets are created when not providing an existing secret name: diff --git a/charts/prefect-server/README.md.gotmpl b/charts/prefect-server/README.md.gotmpl index d8594b57..34e835de 100644 --- a/charts/prefect-server/README.md.gotmpl +++ b/charts/prefect-server/README.md.gotmpl @@ -44,9 +44,15 @@ prefect-server: postgresql: # Disable the objects from the bundled PostgreSQL chart enabled: false + auth: - # Provide the name of an existing secret following the instructions above. + # Option 1: provide the name of an existing secret following the instructions above. existingSecret: + + # Option 2: provide the connection string details directly + username: myuser + password: mypass + database: mydb ``` Two secrets are created when not providing an existing secret name: diff --git a/charts/prefect-server/templates/secret.yaml b/charts/prefect-server/templates/secret.yaml index 462b59d8..d5ffe4f4 100644 --- a/charts/prefect-server/templates/secret.yaml +++ b/charts/prefect-server/templates/secret.yaml @@ -1,4 +1,4 @@ -{{- if and .Values.postgresql.enabled (not .Values.postgresql.auth.existingSecret) }} +{{- if not .Values.postgresql.auth.existingSecret }} apiVersion: v1 kind: Secret metadata: