Skip to content

Commit

Permalink
refactoring secrets into an actual secret k8s object instead of makin…
Browse files Browse the repository at this point in the history
…g them part of the configmap

Signed-off-by: wdower <will@dower.dev>
  • Loading branch information
wdower committed Mar 18, 2024
1 parent d2a370c commit 67547e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
3 changes: 0 additions & 3 deletions vulcan/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ kind: ConfigMap
metadata:
name: {{ .Values.vulcan.configmap.name }}
data:
{{ range .Files.Lines "env/vulcan-secrets.yaml" }}
{{ . }}
{{ end }}
{{ range .Files.Lines "env/vulcanconfig.yaml" }}
{{ . }}
{{ end }}
4 changes: 3 additions & 1 deletion vulcan/templates/postgres-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ spec: # of the deployment
readOnly: false
envFrom:
- configMapRef:
name: vulcan-config
name: {{ .Values.vulcan.configmap.name }}
- secretRef:
name: {{ .Values.vulcan.secret.name }}
readinessProbe:
exec:
command: ["pg_isready", "-U", "postgres"]
Expand Down
2 changes: 2 additions & 0 deletions vulcan/templates/vulcan-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ spec:
envFrom:
- configMapRef:
name: {{ .Values.vulcan.configmap.name }}
- secretRef:
name: {{ .Values.vulcan.secret.name }}
8 changes: 8 additions & 0 deletions vulcan/templates/vulcan-secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.vulcan.secret.name }}
data:
{{ range .Files.Lines "env/vulcan-secrets.yaml" }}
{{ . }}
{{ end }}
3 changes: 3 additions & 0 deletions vulcan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ vulcan:
configmap:
name: vulcan-config

secret:
name: vulcan-secrets

service:
type: ClusterIP
port: 3000
Expand Down

0 comments on commit 67547e4

Please sign in to comment.