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

feat(gateway): watch Gateway for tag changes in GatewayInstance reconciler #3570

Merged

Conversation

michaelbeaumont
Copy link
Contributor

Summary

Closes #3509

@codecov-commenter
Copy link

Codecov Report

Merging #3570 (14b924a) into master (2efb5d9) will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3570      +/-   ##
==========================================
+ Coverage   51.56%   51.57%   +0.01%     
==========================================
  Files         917      917              
  Lines       55563    55571       +8     
==========================================
+ Hits        28649    28661      +12     
+ Misses      24634    24625       -9     
- Partials     2280     2285       +5     
Impacted Files Coverage Δ
...ime/k8s/controllers/gateway_instance_controller.go 0.00% <0.00%> (ø)
pkg/plugins/runtime/k8s/plugin_gateway.go 0.00% <0.00%> (ø)
pkg/plugins/leader/postgres/leader_elector.go 93.61% <0.00%> (-6.39%) ⬇️
pkg/xds/generator/direct_access_proxy_generator.go 86.95% <0.00%> (+1.08%) ⬆️
pkg/core/resources/model/rest/resource.go 69.23% <0.00%> (+1.28%) ⬆️
pkg/insights/resyncer.go 73.61% <0.00%> (+2.45%) ⬆️
pkg/events/eventbus.go 92.59% <0.00%> (+7.40%) ⬆️
pkg/insights/components.go 100.00% <0.00%> (+30.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2efb5d9...14b924a. Read the comment docs.

Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

I think that the commit and PR message buries the lede a bit. AFAICT the main change here is to watch gateways so that we reconcile the GatewayInstance when a binding could be made. Publishing whether there is a binding is a secondary benefit.

@michaelbeaumont
Copy link
Contributor Author

michaelbeaumont commented Dec 20, 2021

I think that the commit and PR message buries the lede a bit. AFAICT the main change here is to watch gateways so that we reconcile the GatewayInstance when a binding could be made. Publishing whether there is a binding is a secondary benefit.

Definitely, that's because the requeuing change came second, after I realized it'd never be requeued. I'll update.

@michaelbeaumont michaelbeaumont changed the title feat(gateway): set Event on GatewayInstance when no Gateway found feat(gateway): watch Gateway for tag changes in GatewayInstance reconciler Dec 20, 2021
@michaelbeaumont michaelbeaumont force-pushed the feat/gateway_instance_events branch 2 times, most recently from 10a51f3 to 7ddd1b1 Compare December 20, 2021 14:47
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Nice one. LGTM.

@michaelbeaumont michaelbeaumont merged commit 52608f7 into kumahq:master Dec 22, 2021
@michaelbeaumont michaelbeaumont deleted the feat/gateway_instance_events branch December 22, 2021 00:22
@lahabana lahabana added this to the gateway preview release milestone Feb 14, 2022
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.

Add GatewayInstance conditions/events to surface errors to users
4 participants