Skip to content

Commit

Permalink
Split external secrets for yt and source in helm (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
l0kix2 authored Jun 18, 2024
1 parent ab646ad commit 10cba00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ytsaurus-identity-sync-chart/templates/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ metadata:
spec:
data:
- remoteRef:
key: {{ required "externalSecretID is not set" .Values.externalSecrets.externalSecretID }}
key: {{ required "externalSecretID is not set" .Values.externalSecrets.ytsaurusSecretID }}
property: YT_TOKEN
secretKey: YT_TOKEN
{{- if eq $syncSource "ldap" }}
- remoteRef:
key: {{ required "externalSecretID is not set" .Values.externalSecrets.externalSecretID }}
key: {{ required "externalSecretID is not set" .Values.externalSecrets.sourceSecretID }}
property: LDAP_PASSWORD
secretKey: LDAP_PASSWORD
{{- else if eq $syncSource "azure" }}
- remoteRef:
key: {{ required "externalSecretID is not set" .Values.externalSecrets.externalSecretID }}
key: {{ required "externalSecretID is not set" .Values.externalSecrets.sourceSecretID }}
property: AZURE_CLIENT_SECRET
secretKey: AZURE_CLIENT_SECRET
{{- end }}
Expand All @@ -34,4 +34,4 @@ spec:
engineVersion: v2
mergePolicy: Replace
type: Opaque
{{- end }}
{{- end }}
5 changes: 3 additions & 2 deletions ytsaurus-identity-sync-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ yt:
token: "yt-secret-token"

# NB: 'ldap' and 'azure' are supported
# syncSource: azure
syncSource: azure

ldap:
password: "not-here"
Expand All @@ -85,7 +85,8 @@ externalSecrets:
secretStore:
kind: SecretStore
name: ""
externalSecretID: ""
ytsaurusSecretID: ""
sourceSecretID: ""

syncConfig: |-
# NB: Place your complete raw identity-sync config here

0 comments on commit 10cba00

Please sign in to comment.