Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to self-manage db creds #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kubernetes/blackduck/templates/postgres-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ metadata:
helm.sh/hook-delete-policy: before-hook-creation
name: {{ .Release.Name }}-blackduck-db-config
namespace: {{ .Release.Namespace }}
{{ if eq .Values.postgres.createSecret true}}
---
apiVersion: v1
data:
Expand All @@ -38,3 +39,4 @@ metadata:
name: {{ .Release.Name }}-blackduck-db-creds
namespace: {{ .Release.Namespace }}
type: Opaque
{{ end }}
2 changes: 2 additions & 0 deletions kubernetes/blackduck/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ postgres:
registry: "docker.io/centos"
# false for running Postgres as a container and true for using External Postgres database
isExternal: true
# false for maintaining your own ${release_name}-blackduck-db-creds secret to keep your database passwords out of values.yaml
createSecret: true
# required only for external postgres, for postgres as a container, it will point to <name>-blackduck-postgres
host:
port: 5432
Expand Down