mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Remove backward compatibility of hostportChainName
This commit is contained in:
parent
a5f766063d
commit
0484a1c2c5
@ -177,11 +177,6 @@ func (hm *hostportManager) Remove(id string, podPortMapping *PodPortMapping) (er
|
||||
chainsToRemove := []utiliptables.Chain{}
|
||||
for _, pm := range hostportMappings {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user