- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for cmdAdd (0.03 sec)
-
cni/pkg/plugin/plugin.go
} } return loggingOptions } // CmdAdd is called for ADD requests func CmdAdd(args *skel.CmdArgs) (err error) { // Defer a panic recover, so that in case if panic we can still return // a proper error to the runtime. defer func() { if e := recover(); e != nil { msg := fmt.Sprintf("istio-cni panicked during cmdAdd: %v\n%v", e, string(debug.Stack())) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Aug 14 19:36:19 UTC 2024 - 10.5K bytes - Viewed (0) -
cni/cmd/istio-cni/main.go
// this may fail, but it should be safe to ignore according // to https://github.com/uber-go/zap/issues/328 _ = log.Sync() }() // TODO: implement plugin version funcs := skel.CNIFuncs{ Add: plugin.CmdAdd, Del: plugin.CmdDelete, Check: plugin.CmdCheck, } err := skel.PluginMainFuncsWithError(funcs, version.All, fmt.Sprintf("CNI plugin istio-cni %v", istioversion.Info.Version)) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 2K bytes - Viewed (0) -
cni/README.md
- `istio-cni` - CNI plugin executable copied to `/opt/cni/bin` - currently implemented for k8s only - on pod add, determines whether pod should have netns setup to redirect to Istio proxy. See [cmdAdd](#cmdadd-workflow) for detailed logic. - it connects to K8S using the kubeconfig and JWT token copied from install-cni to get Pod and Namespace. Since this is a short-running command, each invocation creates a new connection.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 17 23:10:17 UTC 2024 - 10.5K bytes - Viewed (0) -
cni/pkg/constants/constants.go
) // Internal constants const ( DefaultKubeconfigMode = 0o600 CNIAgentLogScope = "cni-agent" CNIPluginLogScope = "cni-plugin" CNIAddEventPath = "/cmdadd" UDSLogPath = "/log" CNIEventSocketName = "pluginevent.sock" LogUDSSocketName = "log.sock" CNIPluginKubeconfName = "istio-cni-kubeconfig" // K8s liveness and readiness endpoints
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 16 15:33:47 UTC 2024 - 3K bytes - Viewed (0) -
cni/pkg/nodeagent/server.go
// // TODO one place this *can* fail is // - if a CNI plugin after us in the chain fails (currently, we are explicitly the last in the chain by design) // - the CmdAdd comes back thru here with a new IP // - we will never clean up that old IP that we "lost" // To fix this we probably need to impl CmdDel + manage our own podUID/IP mapping. if retErr == nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Sep 25 20:54:34 UTC 2024 - 13.4K bytes - Viewed (0)