Commit 84d3378
authored
feat (chart): add support for existing usecase secret (#235)
This pull request introduces support for referencing an externally
managed Kubernetes Secret for usecase credentials, allowing teams to use
the External Secrets Operator (ESO) or other solutions to manage secrets
outside of Helm chart deployments. The chart will now use an existing
Secret if specified, rather than creating a new one.
**Support for externally managed usecase secrets:**
* Added documentation in `infrastructure/README.md` explaining how to
configure the chart to use an externally managed Secret via the new
`usecaseExistingSecretName` value.
* Updated `infrastructure/rag/values.yaml` to include the new
`usecaseExistingSecretName` field under `shared.secrets`, with
instructions for its usage.
**Chart logic updates for conditional Secret creation:**
* Modified `_helpers.tpl` to resolve the usecase Secret name to either
the existing Secret or a generated name, depending on whether
`usecaseExistingSecretName` is set.
* Updated `secrets.yaml` to only create a new usecase Secret if
`usecaseExistingSecretName` is not set, ensuring the chart does not
overwrite externally managed secrets.
[[1]](diffhunk://#diff-9e2edcc6f0d9600113b5f37de42319e2fa5290a228da6ef9d2f6dbcb7bb19014R12)
[[2]](diffhunk://#diff-9e2edcc6f0d9600113b5f37de42319e2fa5290a228da6ef9d2f6dbcb7bb19014R22)1 parent dd0889e commit 84d3378
File tree
4 files changed
+17
-0
lines changed- infrastructure
- rag
- templates
4 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
462 | 472 | | |
463 | 473 | | |
464 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
| |||
0 commit comments