Skip to content

Conversation

howardjohn
Copy link
Member

@howardjohn howardjohn commented Nov 15, 2022

This improves a few things:

  • Bug: when a new ztunnel spins up, we mark it as active. Then the old one spins down, and we mark ztunnelReady=false, ignoring the new one. Now, we reconcile the state to get the "active" ztunnel reliably
  • Performance: tune informers to only watch things on our node, rather than everything
  • Style: use a single Reconcile() function instead of 1 queue and 1 pod handler

Unfortunately, there are no unit tests for this; the code here to configuer ipset, etc is not abstracted in a testable way currently. I did manually test and the e2e tests pass, however. Long term we should improve this, but this code may be going away soon anyways

Please provide a description of this PR:

This improves a few things:

* Bug: when a new ztunnel spins up, we mark it as active. Then the old
  one spins down, and we mark ztunnelReady=false, ignoring the new one.
Now, we reconcile the state to get the "active" ztunnel reliably
* Performance: tune informers to only watch things on our node, rather
  than everything
* Style: use a single Reconcile() function instead of 1 queue and 1 pod
  handler

Unfortunately, there are no unit tests for this; the code here to
configuer ipset, etc is not abstracted in a testable way currently. I
did manually test and the e2e tests pass, however. Long term we should
improve this, but this code may be going away soon anyways
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 15, 2022
@howardjohn howardjohn mentioned this pull request Nov 15, 2022
25 tasks
@dhawton
Copy link
Member

dhawton commented Nov 15, 2022

/test integ-cni

@howardjohn
Copy link
Member Author

I think its a real bug, not sure what though. looking into it

@istio-testing istio-testing merged commit 63e8aa3 into istio:experimental-ambient Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants