Skip to content

Commit

Permalink
fix: follow up on database certificates properties renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Soubeyrand <[email protected]>
  • Loading branch information
yann-soubeyrand committed Dec 12, 2024
1 parent 680cf0b commit 981eee8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion charts/zitadel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zitadel
description: A Helm chart for ZITADEL
type: application
appVersion: v2.65.3
version: 8.7.1
version: 8.7.2
kubeVersion: '>= 1.21.0-0'
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/zitadel/templates/debug_replicaset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
metadata:
annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret-db-ssl-root-crt: {{ include (print $.Template.BasePath "/secret_db-ssl-root-crt.yaml") . | sha256sum }}
checksum/secret-db-ssl-ca-crt: {{ include (print $.Template.BasePath "/secret_db-ssl-ca-crt.yaml") . | sha256sum }}
checksum/secret-zitadel-secrets: {{ include (print $.Template.BasePath "/secret_zitadel-secrets.yaml") . | sha256sum }}
labels:
{{- include "zitadel.debugSelectorLabels" . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/zitadel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret-db-ssl-root-crt: {{ include (print $.Template.BasePath "/secret_db-ssl-root-crt.yaml") . | sha256sum }}
checksum/secret-db-ssl-ca-crt: {{ include (print $.Template.BasePath "/secret_db-ssl-ca-crt.yaml") . | sha256sum }}
checksum/secret-zitadel-secrets: {{ include (print $.Template.BasePath "/secret_zitadel-secrets.yaml") . | sha256sum }}
labels:
app.kubernetes.io/component: start
Expand Down
16 changes: 16 additions & 0 deletions charts/zitadel/templates/secret_db-ssl-ca-crt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.zitadel.dbSslCaCrt }}
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: db-ssl-ca-crt
{{- with .Values.zitadel.dbSslCaCrtAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "zitadel.labels" . | nindent 4 }}
stringData:
ca.crt: |-
{{ .Values.zitadel.dbSslCaCrt | default "" | nindent 6 }}
{{- end }}
22 changes: 0 additions & 22 deletions charts/zitadel/templates/secret_db-ssl-root-crt.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ zitadel:
# The CA Certificate needed for establishing secure database connections
dbSslCaCrt: ""

# Annotations set on database SSL CA certificate secret
dbSslCaCrtAnnotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-delete-policy: before-hook-creation
helm.sh/hook-weight: "0"

# The Secret containing the CA certificate at key ca.crt needed for establishing secure database connections
dbSslCaCrtSecret: ""

Expand Down

0 comments on commit 981eee8

Please sign in to comment.