Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #80 from j-puri/patch-2
Browse files Browse the repository at this point in the history
Fix Auth secrets in Vault.yaml
  • Loading branch information
a-ryoo authored Nov 29, 2023
2 parents fa8fa4b + bcb61f2 commit ef7a7e3
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions charts/allure-testops/templates/infra/vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ spec:
key: "smtpUsername"
- objectName: "smtpPassword"
key: "smtpPassword"

{{- if .Values.allure.auth.oidc.enabled }}
- objectName: "clientId"
key: "clientId"

- objectName: "clientSecret"
key: "clientSecret"
{{- end }}
{{- if .Values.allure.auth.ldap.enabled }}
- objectName: "ldapUser"
key: "ldapUser"

- objectName: "ldapPass"
key: "ldapPass"

{{- end }}
parameters:
{{- if .Values.vault.url }}
vaultAddress: {{ .Values.vault.url }}
Expand Down Expand Up @@ -127,14 +143,23 @@ spec:
- objectName: "smtpPassword"
secretPath: "{{ .Values.vault.smtpPath }}"
secretKey: "password"

{{- if .Values.allure.auth.oidc.enabled }}
- objectName: "clientId"
secretPath: "{{ .Values.vault.secretPath }}"
secretKey: "clientId"
secretKey: "client_id"

- objectName: "clientSecret"
secretPath: "{{ .Values.vault.secretPath }}"
secretKey: "clientSecret"
secretKey: "client_secret"
{{- end }}
{{- if .Values.allure.auth.ldap.enabled }}
- objectName: "ldapUser"
secretPath: "{{ .Values.vault.secretPath }}"
secretKey: "ldap_user"

- objectName: "ldapPass"
secretPath: "{{ .Values.vault.secretPath }}"
secretKey: "ldap_pass"
{{- end }}
{{- end }}

0 comments on commit ef7a7e3

Please sign in to comment.