- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DeleteInpodRules (0.11 sec)
-
cni/pkg/nodeagent/net.go
if !isDelete { if openNetns != nil { // pod is removed from the mesh, but is still running. remove iptables rules log.Debugf("calling DeleteInpodRules") if err := s.netnsRunner(openNetns, func() error { return s.podIptables.DeleteInpodRules() }); err != nil { return fmt.Errorf("failed to delete inpod rules: %w", err) } } else { log.Warn("pod netns already gone, not deleting inpod rules") }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 21 16:48:55 UTC 2024 - 9.1K bytes - Viewed (0) -
cni/pkg/iptables/iptables_e2e_test.go
assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false)) t.Log("starting cleanup") // Cleanup, should work assert.NoError(t, iptConfigurator.DeleteInpodRules()) validateIptablesClean(t) t.Log("second run") // Add again, should still work assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false)) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 2.9K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
inPodConfigurator := ptr.Of(*configurator) inPodConfigurator.ext = podDeps return configurator, inPodConfigurator, nil } func (cfg *IptablesConfigurator) DeleteInpodRules() error { var inpodErrs []error log.Debug("Deleting iptables rules") inpodErrs = append(inpodErrs, cfg.executeDeleteCommands(), cfg.delInpodMarkIPRule(), cfg.delLoopbackRoute())
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 23.3K bytes - Viewed (0)