Commit 7077de1
fix(opentelemetry-kube-stack): quote env var values in Instrumentation template (#2155)
* fix(opentelemetry-kube-stack): quote env var values in Instrumentation template
Numeric env var values passed to the Instrumentation resource caused
validation errors because they were rendered as bare integers instead of
strings. This is especially common when using the chart as a subchart,
where YAML type coercion strips quotes from numeric strings.
Two fixes:
- Quote the value in the renderenvs template helper
- Accept both string and number types in the EnvVar JSON schema
Fixes #1888
Signed-off-by: Nick Nikolakakis <nonicked@protonmail.com>
* fix: format JSON array for pre-commit pretty-format-json
Signed-off-by: Nick Nikolakakis <nonicked@protonmail.com>
---------
Signed-off-by: Nick Nikolakakis <nonicked@protonmail.com>
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>1 parent 646b1b5 commit 7077de1
3 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
570 | 573 | | |
571 | 574 | | |
572 | 575 | | |
| |||
0 commit comments