Skip to content

Commit

Permalink
create core-encryption secret only if encryption.existingSecret is no…
Browse files Browse the repository at this point in the history
…t set
  • Loading branch information
illya-havsiyevych committed May 23, 2024
1 parent 331c580 commit 3bff5f2
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 3bff5f2

Please sign in to comment.