Skip to content

Commit

Permalink
re-implement configmap, skip copying files and setting ownership when…
Browse files Browse the repository at this point in the history
… sslSource is not 'secret'
  • Loading branch information
jsirianni committed Dec 12, 2024
1 parent d74fe97 commit c6f6eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/bindplane/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ data:
chmod 0750 /data
{{ end }}
{{- if .Values.backend.postgres.sslsecret.name }}
{{- if eq .Values.backend.postgres.sslSource "secret" }}
kind: ConfigMap
apiVersion: v1
metadata:
name: postgres-tls-init
data:
init.sh: |
#!/bin/sh
{{- if eq .Values.backend.postgres.sslSource "secret" }}
cp /ca.crt /client.crt /client.key /postgres-tls
chmod 0400 /postgres-tls/*
{{- end }}
chown -R 65534:65534 /postgres-tls
{{ end }}
{{ end }}

0 comments on commit c6f6eb6

Please sign in to comment.