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

Use reader client to get operator config map #591

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Use reader client to get operator config map #591

merged 2 commits into from
Nov 10, 2023

Conversation

idlewis
Copy link
Collaborator

@idlewis idlewis commented Nov 10, 2023

The operator config map is not always in the same namespace that is being watched, and the client provided by the manager will only read resources in the watched namespace. 'Get' on the configmap will fail in this situation

Use the reader client instead, as this will read resources from any namespace

fixes #590

The operator config map is not always in the same namespace that is
being watched, and the client provided by the manager will only read
resources in the watched namespace. 'Get' on the configmap will fail
in this situation

Use the reader client instead, as this will read resources from any
namespace
@idlewis idlewis self-assigned this Nov 10, 2023
@idlewis idlewis requested a review from arturdzm November 10, 2023 11:39
Need to use the same fake client to create and fetch the configmap
otherwise, the configmap can't be retrieved
@idlewis idlewis merged commit b5d45ab into main Nov 10, 2023
@idlewis idlewis deleted the configmap-fix branch November 10, 2023 15:15
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.

Operator config map isn't read when the operator is watching another namespace
2 participants