-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling of environment variables in ConfigMaps
Currently when environment variable is defined in ConfigMap, it is like being invisible to OpenTelemetry Operator. Improve this by adding a common class handling the environment variables, which is also able to load the referenced ConfigMaps. Signed-off-by: Oldřich Jedlička <[email protected]>
- Loading branch information
Showing
30 changed files
with
2,133 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action) | ||
component: auto-instrumentation | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add support for detecting and reading environment variables from POD's ConfigMap resources. | ||
|
||
# One or more tracking issues related to the change | ||
issues: [1393, 1814] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | | ||
Now the auto-instrumentation will see the environment variables defined via POD's `env.valueFrom.configMapKeyRef` and | ||
`envFrom.configMapRef` fields, so the auto-instrumentation will be able to prevent overriding them, or it will be able | ||
to extend the existing definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.