Merge pull request #68923 from delulu/fix-hnspolicy-updates

fix inconsistency in windows kernel proxy when updating hns policy
This commit is contained in:
k8s-ci-robot 2018-10-03 13:02:03 -07:00 committed by GitHub
commit a579355e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -517,7 +517,7 @@ func CleanupLeftovers() (encounteredError bool) {
func (svcInfo *serviceInfo) cleanupAllPolicies(endpoints []*endpointsInfo) { func (svcInfo *serviceInfo) cleanupAllPolicies(endpoints []*endpointsInfo) {
Log(svcInfo, "Service Cleanup", 3) Log(svcInfo, "Service Cleanup", 3)
if svcInfo.policyApplied { // Skip the svcInfo.policyApplied check to remove all the policies
svcInfo.deleteAllHnsLoadBalancerPolicy() svcInfo.deleteAllHnsLoadBalancerPolicy()
// Cleanup Endpoints references // Cleanup Endpoints references
for _, ep := range endpoints { for _, ep := range endpoints {
@ -525,7 +525,6 @@ func (svcInfo *serviceInfo) cleanupAllPolicies(endpoints []*endpointsInfo) {
} }
svcInfo.policyApplied = false svcInfo.policyApplied = false
}
} }
func (svcInfo *serviceInfo) deleteAllHnsLoadBalancerPolicy() { func (svcInfo *serviceInfo) deleteAllHnsLoadBalancerPolicy() {