Skip to content

Commit

Permalink
feat: create core-encryption secret only if encryption.existingSecret…
Browse files Browse the repository at this point in the history
… is not set (#42)
  • Loading branch information
illya-havsiyevych authored Jun 4, 2024
1 parent b145ad2 commit 56b41d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dial-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ maintainers:
name: dial-core
sources:
- https://github.com/epam/ai-dial-helm/tree/main/charts/dial-core
version: 2.0.2
version: 2.0.3
2 changes: 1 addition & 1 deletion charts/dial-core/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dial-core

![Version: 2.0.2](https://img.shields.io/badge/Version-2.0.2-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)
![Version: 2.0.3](https://img.shields.io/badge/Version-2.0.3-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square)

Helm chart for dial core

Expand Down
2 changes: 2 additions & 0 deletions charts/dial-core/templates/secret-encryption.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.configuration.encryption.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -23,3 +24,4 @@ type: Opaque
data:
aidial.encryption.password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "dialCore.encryptionSecretName" .) "key" "aidial.encryption.password" "providedValues" (list "configuration.encryption.password") "length" 32 "strong" false "context" $) }}
aidial.encryption.salt: {{ include "common.secrets.passwords.manage" (dict "secret" (include "dialCore.encryptionSecretName" .) "key" "aidial.encryption.salt" "providedValues" (list "configuration.encryption.salt") "length" 32 "strong" false "context" $) }}
{{- end }}

0 comments on commit 56b41d6

Please sign in to comment.