Skip to content

Commit

Permalink
feat: allow for Postgres password secret generation (#88)
Browse files Browse the repository at this point in the history
## Description

This allows for the Postgres password secret to be generated in the
config chart directly

## Related Issue

Fixes #86 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-package-sonarqube/blob/main/CONTRIBUTING.md#developer-workflow)
followed
  • Loading branch information
Racer159 committed Jun 12, 2024
1 parent f024ebf commit 84503e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chart/templates/postgres-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if ne .Values.postgres.password "" }}
apiVersion: v1
kind: Secret
metadata:
name: sonarqube-postgres
namespace: {{ .Release.Namespace }}
type: kubernetes.io/opaque
stringData:
password: {{ .Values.postgres.password }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ sso:
saml:
providerName: Keycloak # This is displayed on the SonarQube landing screen ("Log in with <providerName>")
postgres:
password: ""

internal: true
selector:
cluster-name: pg-cluster
Expand Down

0 comments on commit 84503e5

Please sign in to comment.