Skip to content

Commit

Permalink
Add possibility to configure configSecretKey (#112)
Browse files Browse the repository at this point in the history
Co-authored-by: Elio Bischof <[email protected]>
  • Loading branch information
skeletorXVI and eliobischof authored Sep 12, 2023
1 parent 050a436 commit d1dff31
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 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.35.0"
version: 6.1.0
version: 6.2.0
kubeVersion: ">= 1.21.0-0"
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/zitadel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ spec:
- --config
- /.secrets/zitadel-secrets-yaml/zitadel-secrets-yaml
{{- end }}
{{- if .Values.zitadel.configSecretName }}
{{- if and .Values.zitadel.configSecretName .Values.zitadel.configSecretKey }}
- --config
- /.secrets/zitadel-secret-config-yaml/config-yaml
- /.secrets/zitadel-secret-config-yaml/{{ .Values.zitadel.configSecretKey }}
{{- end }}
- --masterkeyFromEnv
env:
Expand Down
4 changes: 2 additions & 2 deletions charts/zitadel/templates/initjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ spec:
- --config
- /.secrets/zitadel-secrets-yaml/zitadel-secrets-yaml
{{- end }}
{{- if .Values.zitadel.configSecretName }}
{{- if and .Values.zitadel.configSecretName .Values.zitadel.configSecretKey }}
- --config
- /.secrets/zitadel-secret-config-yaml/config-yaml
- /.secrets/zitadel-secret-config-yaml/{{ .Values.zitadel.configSecretKey }}
{{- end }}
env:
- name: POD_IP
Expand Down
4 changes: 2 additions & 2 deletions charts/zitadel/templates/setupjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ spec:
- --config
- /.secrets/zitadel-secrets-yaml/zitadel-secrets-yaml
{{- end }}
{{- if .Values.zitadel.configSecretName }}
{{- if and .Values.zitadel.configSecretName .Values.zitadel.configSecretKey }}
- --config
- /.secrets/zitadel-secret-config-yaml/config-yaml
- /.secrets/zitadel-secret-config-yaml/{{ .Values.zitadel.configSecretKey }}
{{- end }}
- --steps
- /config/zitadel-config-yaml
Expand Down
4 changes: 2 additions & 2 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ zitadel:
secretConfig:

# Reference the name of a secret that contains ZITADEL configuration.
# The key should be named "config-yaml".
configSecretName:
# The key under which the ZITADEL configuration is located in the secret.
configSecretKey: config-yaml

# ZITADEL uses the masterkey for symmetric encryption.
# You can generate it for example with tr -dc A-Za-z0-9 </dev/urandom | head -c 32
Expand Down Expand Up @@ -134,7 +135,6 @@ setupJob:
repository: bitnami/kubectl
tag: ""


readinessProbe:
enabled: true
initialDelaySeconds: 0
Expand Down
2 changes: 1 addition & 1 deletion examples/5-referenced-secrets/zitadel-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: existing-zitadel-secrets
type: Opaque
stringData:
config-yaml: |
config.yaml: |
Database:
Postgres:
Host: db-postgresql
1 change: 1 addition & 0 deletions examples/5-referenced-secrets/zitadel-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ zitadel:
SSL:
Mode: disable
configSecretName: existing-zitadel-secrets
configSecretKey: config.yaml

0 comments on commit d1dff31

Please sign in to comment.