Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetNodeIP (0.14 sec)

  1. pkg/util/node/node.go

    		return nil, err
    	}
    	// GetNodeHostIPs always returns at least one IP if it didn't return an error
    	return ips[0], nil
    }
    
    // GetNodeIP returns an IP (as with GetNodeHostIP) for the node with the provided name.
    // If required, it will wait for the node to be created.
    func GetNodeIP(client clientset.Interface, name string) net.IP {
    	var nodeIP net.IP
    	backoff := wait.Backoff{
    		Steps:    6,
    		Duration: 1 * time.Second,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 23:24:38 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. cmd/kube-proxy/app/server_test.go

    		metav1.UpdateOptions{},
    	)
    	_, _ = client.CoreV1().Nodes().Create(context.TODO(),
    		makeNodeWithAddress("node3", "192.168.0.3"),
    		metav1.CreateOptions{},
    	)
    
    	// Ensure each getNodeIP completed as expected
    	for i := range chans {
    		err := <-chans[i]
    		if err != nil {
    			t.Error(err.Error())
    		}
    	}
    }
    
    func Test_detectNodeIPs(t *testing.T) {
    	cases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  3. cmd/kube-proxy/app/server.go

    	if nodeIPs[primaryFamily].IsLoopback() {
    		logger.Info("Can't determine this node's IP, assuming loopback; if this is incorrect, please set the --bind-address flag")
    	}
    	return primaryFamily, nodeIPs
    }
    
    // getNodeIP returns IPs for the node with the provided name.  If
    // required, it will wait for the node to be created.
    func getNodeIPs(ctx context.Context, client clientset.Interface, name string) []net.IP {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top