-
Notifications
You must be signed in to change notification settings - Fork 20
feat: enable HA hub agents by optionally depending on cert manager #366
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
base: main
Are you sure you want to change the base?
feat: enable HA hub agents by optionally depending on cert manager #366
Conversation
766ac60 to
91a764b
Compare
| // Add webhook readiness check AFTER controllers are set up (when ResourceInformer is initialized) | ||
| // This prevents webhook from accepting requests before discovery cache is populated | ||
| if opts.EnableWebhook { | ||
| if err := mgr.AddReadyzCheck("webhook-cache", webhook.ResourceInformerReadinessChecker(validator.ResourceInformer)); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR stacks on top of an informer readiness check change because now that I have multiple replicas of webhook servers, it becomes likely that some webhook servers might start serving requests before the cache is synced
7850aa5 to
177d5a7
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
177d5a7 to
69ab42b
Compare
Description of your changes
Currently the in memory 10-year self-signed cert cannot be shared among replicas of hub agents so only the leader has a valid cert registered with API server
Using cert manger decouples cert management and hub agent core functionality. It also does cert rotation.
Trying to partially address Azure/fleet#1224
Fixes #
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer