Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewClientConfigForRestConfig (0.14 sec)

  1. istioctl/pkg/cli/context.go

    		config.QPS = 50
    		config.Burst = 100
    		config.Impersonate = impersonateConfig
    	})
    	if err != nil {
    		return nil, err
    	}
    	return kube.NewCLIClient(kube.NewClientConfigForRestConfig(rc), kube.WithRevision(revision), kube.WithCluster(cluster.ID(configContext)))
    }
    
    func NewCLIContext(rootFlags *RootFlags) Context {
    	if rootFlags == nil {
    		rootFlags = &RootFlags{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 23 19:31:32 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server.go

    		config.QPS = 80
    		config.Burst = 160
    	})
    	if err != nil {
    		return nil, fmt.Errorf("failed creating kube config: %v", err)
    	}
    
    	client, err := kube.NewClient(kube.NewClientConfigForRestConfig(kubeRestConfig), "")
    	if err != nil {
    		return nil, fmt.Errorf("failed creating kube client: %v", err)
    	}
    
    	return client, 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)
Back to top