fix service policy deletion bug

This commit is contained in:
Jeff
2019-05-17 00:55:45 +08:00
committed by zryfish
parent 9c5dcf747f
commit d310e635f2
3 changed files with 18 additions and 18 deletions

View File

@@ -305,6 +305,7 @@ func (v *DestinationRuleController) syncService(key string) error {
}
dr := currentDestinationRule.DeepCopy()
dr.Spec.TrafficPolicy = nil
dr.Spec.Subsets = subsets
//
if len(servicePolicies) > 0 {