Comments (9)
Found the reason that causing this problem, and it does not seems like a bug to me, so closing this one now.
from gateway.
It is also happening when applying resources, I have seen this in the past, is this only happening with merged gateways @shawnh2?
This behaviour seems similar to what was fixed before #2395
Since we changed the watchable interface to a map, which is unordered, wonder what is causing these unnecessary updates.
yes, it only happens with merge gateways. it's mainly caused by the step 2 which I described above.
from gateway.
This problem will not exist if the Gateways and HTTPRoutes got deleted first, then delete the rest GatewayClass and EP.
If the GatewayClass and EP got deleted first, the merge gateways feature fails, so all 3 gateways will be created separately.
So by applying k delete -f mg.yaml
, the GatewayClass and EP will be deleted first, causing all 3 gateways to be created separately and then got deleted immediately.
from gateway.
hey @shawnh2 if the GWC gets deleted first, why will the GWs get created again ?
from gateway.
maybe related to #2659
from gateway.
hey @shawnh2 if the GWC gets deleted first, why will the GWs get created again ?
by answering this question, i toke a closer look at EG reconcile method, and here is what i found.
-
if the GWC got deleted first, it will still appears in
acceptedGCs
list, because it won't pass the finializer check:
gateway/internal/provider/kubernetes/controller.go
Lines 153 to 154 in cf46fbe
-
then EG will take the deleted GWC name as index to list the GTWs that associated with, we can still get all the GTWs here since they are not be deleted
gateway/internal/provider/kubernetes/controller.go
Lines 625 to 626 in cf46fbe
so all the GTWs will be recreated like I described above -
we cannot fall into this logic to remove the finializer for GWC, so the GWC will never pass the finializer check in step 1, remain accepted
from gateway.
I'm not sure what expected behavior of this should be?
IMO, at least all the GTWs should be in NOT ACCEPT status and all the related resources like Service, Deployements etc should not be recreated.
from gateway.
It is also happening when applying resources, I have seen this in the past, is this only happening with merged gateways @shawnh2?
This behaviour seems similar to what was fixed before #2395
Since we changed the watchable interface to a map, which is unordered, wonder it is causing these unnecessary updates.
from gateway.
I see, this is matching the deletion issue
from gateway.
Related Issues (20)
- can't configure pathPrefix for extAuth
- CEL Validations for BTP targeting non HTTPRoutes
- Certificate revocation list (CRL) support for the mTLS authentication HOT 3
- TestE2E/ConnectionLimit Close_connections_over_limit e2e test seems to constantly fail HOT 4
- TestE2E/ConnectionLimit/Close_connections_over_limit is failing
- Document BTP supported features for HTTP/UDP/TCPRoutes
- Fix TCPKeepAlive config for TCPRoute
- HTTP Health Check doesn't work as expected HOT 3
- Support configuration of resources in SecurityPolicys OIDC filter HOT 2
- feat: supports customized metrics flush period HOT 4
- flaky: TestE2E/HTTPExtAuth/http_route_with_ext_auth_authentication
- Model OpenTelelemetry Sinks as a BackendRef HOT 13
- Infrastructure runner trying to create/update proxy despite empty listeners
- Reorder fault Envoy filter and make it the first filter HOT 1
- Support headers with underscore HOT 6
- Support modifying http2 listener settings HOT 4
- Better helm support for airgapped clusters with no access to public image registry HOT 1
- Set ownerReference on gateway Deployment HOT 5
- Support LB priority for endpoints HOT 4
- tls minversion not being respected in ClientTrafficPolicy HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gateway.