Skip to content

Commit

Permalink
fix reload network endpoints (istio#42825)
Browse files Browse the repository at this point in the history
* fix reload network endpoints

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* add release notes

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* rename

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
  • Loading branch information
ramaraochavali authored Jan 17, 2023
1 parent e7ff380 commit f921038
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pilot/pkg/model/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ func (mgr *NetworkManager) reloadNetworkEndpoints() {
}
if oldNetworks != nil {
for _, networkconf := range oldNetworks.Networks {
for _, ne := range networkconf.Endpoints {
if len(ne.GetFromCidr()) > 0 {
newEndpoints = append(newEndpoints, ne)
for _, oe := range networkconf.Endpoints {
if len(oe.GetFromCidr()) > 0 {
oldEndpoints = append(oldEndpoints, oe)
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions releasenotes/notes/42818.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: release-notes/v2
kind: bug-fix
area: traffic-management
issue:
- 42818
releaseNotes:
- |
**Fixed** an issue where the network endpoints are incorrectly computed when network gateway changes.

0 comments on commit f921038

Please sign in to comment.