Skip to content
New issue

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

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

Already on GitHub? # to your account

vmuser: fix reconciling the vmauth config #1231

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

ebensom
Copy link
Contributor

@ebensom ebensom commented Jan 31, 2025

Due to a logic bug in VMAuth.IsUnmanaged(), the VMUser reconiliation does not update the corresponding VMAuth resources' configuration:
https://github.com/VictoriaMetrics/operator/blob/master/internal/controller/operator/vmuser_controller.go#L99

This bug is hidden/mitigated currently because the VMAuth reconciliation by default is requeued every 60 seconds:
https://github.com/VictoriaMetrics/operator/blob/master/internal/controller/operator/vmauth_controller.go#L101

@ebensom
Copy link
Contributor Author

ebensom commented Jan 31, 2025

@f41gh7 Can you please review this small bugfix?

Copy link
Collaborator

@f41gh7 f41gh7 left a comment

Choose a reason for hiding this comment

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

LGTM

@ebensom
Copy link
Contributor Author

ebensom commented Jan 31, 2025

@f41gh7 it seems like one unrelated unit test failed due to an unknown reason (flaky test maybe?). Could you please re-run the GH action and merge the PR? I don't have permission.

@f41gh7 f41gh7 merged commit 9ec88d0 into VictoriaMetrics:master Jan 31, 2025
1 check failed
@f41gh7
Copy link
Collaborator

f41gh7 commented Jan 31, 2025

Thanks for contribution!

@f41gh7 it seems like one unrelated unit test failed due to an unknown reason (flaky test maybe?). Could you please re-run the GH action and merge the PR? I don't have permission.

No worries, It's flaky e2e test. We're going to fix it at some point ( it was a choice between speed and reliability, we choose speed).

@ebensom ebensom deleted the fix-vmuser-reconcile branch February 1, 2025 11:12
@f41gh7
Copy link
Collaborator

f41gh7 commented Feb 6, 2025

Bugfix included into v0.53.0 release

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants