- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newK8sClient (0.06 sec)
-
cni/pkg/plugin/kubernetes.go
Annotations map[string]string ProxyType string ProxyEnvironments map[string]string ProxyUID *int64 ProxyGID *int64 } // newK8sClient returns a Kubernetes client func newK8sClient(conf Config) (kubernetes.Interface, error) { // Some config can be passed in a kubeconfig file kubeconfig := filepath.Join(conf.CNIAgentRunDir, constants.CNIPluginKubeconfName)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 3.7K bytes - Viewed (0) -
cni/pkg/plugin/plugin.go
conf, err := parseConfig(args.StdinData) if err != nil { log.Errorf("istio-cni cmdAdd failed to parse config %v %v", string(args.StdinData), err) return err } // Create a kube client client, err := newK8sClient(*conf) if err != nil { return err } // Actually do the add if err := doAddRun(args, conf, client, IptablesInterceptRuleMgr()); err != nil { return err } return pluginResponse(conf)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Aug 14 19:36:19 UTC 2024 - 10.5K bytes - Viewed (0)