Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing WATCH_NAMESPACE env variable handling for single namespace value #2606

Merged

Conversation

davidhaja
Copy link
Contributor

Signed-off-by: dhaja [email protected]

Description:
As mentioned in the linked issue, the WATCH_NAMESPACE has no effect in case there is no comma in it (single namespace value).
Fixing this by adding entries in the namespaces map when the WATCH_NAMESPACE is set and disregarding if it has commas in it or not.

Link to tracking Issue: #2589

Testing:
Ran tests locally, verified in a kind cluster that namespaces map contains one item in case WATCH_NAMESPACE set and no comma in it, and multiple items if the env variable has comma-separated namespaces.

Documentation:
N/A

@davidhaja davidhaja requested a review from a team February 6, 2024 15:08
Copy link

linux-foundation-easycla bot commented Feb 6, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for your contribution!

@jaronoff97 jaronoff97 merged commit 94c8420 into open-telemetry:main Feb 7, 2024
27 checks passed
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants