Skip to content

Commit

Permalink
feat: allow for Postgres password secret generation (#147)
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 #145 

## 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-gitlab/blob/main/CONTRIBUTING.md#developer-workflow)
followed
  • Loading branch information
Racer159 committed Jun 12, 2024
1 parent eaa59dd commit 5d48380
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: gitlab-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 @@ -19,6 +19,8 @@ redis:
namespace: dev-redis
port: 6379
postgres:
password: ""

# Set to false to use external postgres
internal: true
selector:
Expand Down

0 comments on commit 5d48380

Please sign in to comment.