Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
- name: encryption-keys
secret:
secretName: {{ include "secrets.backend.name" . }}
optional: false
optional: {{ not .Values.general.deploy_secrets.enabled }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If deploy_secrets = true ; chart is creating the encryption-key-0 by default, so backend pod will never fail, so optional will be false
if deploy_secrets = false; the customer creates the secret, and since optional will be true, it means weather or not he provides the encryption-key-0, we won't fail the mounting with
│ Warning FailedMount 26s (x7 over 58s) kubelet MountVolume.SetUp failed for volume "encryption-keys" : references non-existent secret key: encryption-key-0 │

items:
# Only select items that start with encryption-key-
{{- include "encryption.key.items" . | nindent 18 }}
Expand Down