-
Notifications
You must be signed in to change notification settings - Fork 736
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
(bugfix) Issue-1464 issue resolved #1644
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: S-mishina <[email protected]>
The current fix causes the changes to be periodically applied to Istio. It would be better to incorporate newSpec and detect the differences, so that only the changes are applied. |
Signed-off-by: S-mishina <[email protected]>
Lines 296 to 300 in 9a0c6e7
If we replace the above with newSpec and make a difference, it could be applied! |
If virtualService.Spec.Gateways and virtualService.Spec.Hosts are empty, wouldn't it mean that no differences will be detected if nothing is added to newSpec? |
Signed-off-by: S-mishina <[email protected]>
Signed-off-by: S-mishina <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1644 +/- ##
===========================================
- Coverage 56.51% 34.09% -22.43%
===========================================
Files 85 282 +197
Lines 8571 20563 +11992
===========================================
+ Hits 4844 7011 +2167
- Misses 3053 12622 +9569
- Partials 674 930 +256 ☔ View full report in Codecov by Sentry. |
Signed-off-by: S-mishina <[email protected]>
Signed-off-by: S-mishina <[email protected]>
summary
if
delegation: true
is set while a VirtualService has already been created by Flagger, there are no changes to the newSpec. Therefore, I suspect that the hosts and gateway are not removed.flagger/pkg/router/istio.go
Lines 296 to 300 in 9a0c6e7
flagger/pkg/router/istio.go
Line 333 in 9a0c6e7
[MEMO] Code of the relevant part
flagger/pkg/router/istio.go
Lines 325 to 364 in 9a0c6e7
※ This is just a suggestion for now, and there may be a better way to do it.
reference)
#1464