Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewForConfig (0.09 sec)

  1. cni/pkg/plugin/kubernetes.go

    		return nil, err
    	}
    
    	log.Debugf("istio-cni set up kubernetes client with kubeconfig %s", kubeconfig)
    
    	// Create the client
    	return kubernetes.NewForConfig(config)
    }
    
    // getK8sPodInfo returns information of a POD
    func getK8sPodInfo(client kubernetes.Interface, podName, podNamespace string) (*PodInfo, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. istioctl/pkg/util/handlers/handlers.go

    	}
    	clientConfig, err := factory.ToRESTConfig()
    	if err != nil {
    		return nil, "", "", "", err
    	}
    	clientset, err := corev1client.NewForConfig(clientConfig)
    	if err != nil {
    		return nil, "", "", "", err
    	}
    	return clientset, "", namespace, selector.String(), nil
    }
    
    // this is used for testing. it should not be changed in regular code.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top