Commit a57e57d
committed
feat(helm): add envFrom to export.stdout via extraEnvFrom/envFromSecrets
This commit extends the Helm chart for Tetragon by adding support
for envFrom in the export.stdout template. Specifically:
- export.stdout.extraEnvFrom: allows referencing ConfigMaps/Secrets
via envFrom.
- export.stdout.envFromSecrets: convenience for Secrets only,
accepts strings or objects.
Usage examples:
values.yaml
-----------
export:
stdout:
# Add specific env vars
extraEnv:
- name: LOG_LEVEL
value: info
# Pull multiple variables from ConfigMap/Secret via envFrom
extraEnvFrom:
- configMapRef:
name: fluent-bit-config
# Convenience for Secret envFrom
envFromSecrets:
- opensearch-credentials
- name: optional-secret
optional: true
Rendered container
------------------
env:
- name: LOG_LEVEL
value: info
envFrom:
- configMapRef:
name: fluent-bit-config
- secretRef:
name: opensearch-credentials
- secretRef:
name: optional-secret
optional: true
Signed-off-by: Bagautdino <[email protected]>1 parent b0ecd1b commit a57e57d
File tree
3 files changed
+54
-5
lines changed- install/kubernetes/tetragon
- templates
3 files changed
+54
-5
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
7 | 29 | | |
8 | 30 | | |
9 | 31 | | |
| |||
32 | 54 | | |
33 | 55 | | |
34 | 56 | | |
35 | | - | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | | - | |
| 356 | + | |
356 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
357 | 384 | | |
358 | 385 | | |
359 | 386 | | |
| |||
0 commit comments