Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use emailsender clusterName in secret #1915

Merged
merged 1 commit into from
Jun 26, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,23 @@ spec:
data:
- secretKey: db.user # pragma: allowlist secret
remoteRef:
# TODO: use emailsender.clusterName once it is available via Addon flow
key: "cluster-{{ .Values.fleetshardSync.clusterName }}-emailsender-db"
key: "cluster-{{ .Values.emailsender.clusterName }}-emailsender-db"
property: "username"
- secretKey: db.name # pragma: allowlist secret
remoteRef:
key: "cluster-{{ .Values.fleetshardSync.clusterName }}-emailsender-db"
key: "cluster-{{ .Values.emailsender.clusterName }}-emailsender-db"
property: "databaseName"
- secretKey: db.host # pragma: allowlist secret
remoteRef:
key: "cluster-{{ .Values.fleetshardSync.clusterName }}-emailsender-db"
key: "cluster-{{ .Values.emailsender.clusterName }}-emailsender-db"
property: "host"
- secretKey: db.password # pragma: allowlist secret
remoteRef:
key: "cluster-{{ .Values.fleetshardSync.clusterName }}-emailsender-db"
key: "cluster-{{ .Values.emailsender.clusterName }}-emailsender-db"
property: "password" # pragma: allowlist secret
- secretKey: db.port # pragma: allowlist secret
remoteRef:
key: "cluster-{{ .Values.fleetshardSync.clusterName }}-emailsender-db"
key: "cluster-{{ .Values.emailsender.clusterName }}-emailsender-db"
property: "port"
---
apiVersion: external-secrets.io/v1beta1
Expand Down
Loading