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

fix(controller): add missing namespace index from workflow informer #12666

Merged

Conversation

ryancurrah
Copy link
Contributor

@ryancurrah ryancurrah commented Feb 14, 2024

Due to the namespace index missing from the workflow informer the healthz endpoint could not list namespace indexes.

Leading to the following warning message:

listers.go:79] can not retrieve list of objects using index : Index with name namespace does not exist

Everytime the healthz endpoint is called.

This fix has been verified in our environment by building the workflow-controller image from scratch and deploying it.

Related Slack thread: https://cloud-native.slack.com/archives/C01QW9QSSSK/p1707918209805259

Fixes

Fixes healthz endpoint not being able to list namespace indexes.

Motivation

These changes are similar to what others have done to resolve the issue.

Modifications

Added the namespace index to the workflow informer.

Verification

Deployed to our environment hit the healthz endpoint with curl http://127.0.0.1:6060/healthz and checked for the log message. It no longer appears.

Due to the namespace index missing from the workflow informer the healthz endpoint could not list namespace indexes. Leading to the following warning message  everytime the healthz endpoint is called. This fix has been verified in our environment. Related Slack thread: https://cloud-native.slack.com/archives/C01QW9QSSSK/p1707918209805259

Signed-off-by: Ryan Currah <[email protected]>
@agilgur5 agilgur5 added the area/controller Controller issues, panics label Feb 14, 2024
@ryancurrah ryancurrah marked this pull request as ready for review February 14, 2024 19:49
Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

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

LGTM.

This is a common pattern and appears to do the right thing.

Copy link
Member

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Makes sense to me and tests continue to pass, so does not seem to cause any regressions either, and should improve performance.

@agilgur5 agilgur5 merged commit 148252a into argoproj:main Feb 15, 2024
28 checks passed
@agilgur5
Copy link
Member

Thanks for root causing this and fixing it!

@ryancurrah
Copy link
Contributor Author

No problem @agilgur5!

@ryancurrah ryancurrah deleted the fix-workflow-informer-for-healthz branch February 15, 2024 18:29
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Feb 20, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Feb 27, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Feb 28, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request Mar 12, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request May 6, 2024
isubasinghe pushed a commit to isubasinghe/argo-workflows that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Controller issues, panics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants