Commit 0484a1c2 authored by xiangpengzhao's avatar xiangpengzhao

Remove backward compatibility of hostportChainName

parent a5f76606
...@@ -177,11 +177,6 @@ func (hm *hostportManager) Remove(id string, podPortMapping *PodPortMapping) (er ...@@ -177,11 +177,6 @@ func (hm *hostportManager) Remove(id string, podPortMapping *PodPortMapping) (er
chainsToRemove := []utiliptables.Chain{} chainsToRemove := []utiliptables.Chain{}
for _, pm := range hostportMappings { for _, pm := range hostportMappings {
chainsToRemove = append(chainsToRemove, getHostportChain(id, pm)) chainsToRemove = append(chainsToRemove, getHostportChain(id, pm))
// To preserve backward compatibility for k8s 1.5 or earlier.
// Need to remove hostport chains added by hostportSyncer if there is any
// TODO: remove this in 1.7
chainsToRemove = append(chainsToRemove, hostportChainName(pm, getPodFullName(podPortMapping)))
} }
// remove rules that consists of target chains // remove rules that consists of target chains
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment