Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NetworkInterfaces (0.17 sec)

  1. pkg/proxy/util/testing/fake.go

    // FakeNetwork implements the NetworkInterfacer interface for test purpose.
    type FakeNetwork struct {
    	NetworkInterfaces []net.Interface
    	// The key of map Addrs is the network interface name
    	Address map[string][]net.Addr
    }
    
    // NewFakeNetwork initializes a FakeNetwork.
    func NewFakeNetwork() *FakeNetwork {
    	return &FakeNetwork{
    		NetworkInterfaces: make([]net.Interface, 0),
    		Address:           make(map[string][]net.Addr),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 08:08:19 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. cluster/gce/upgrade-aliases.sh

    #  IP_ALIAS_SUBNETWORK
    function detect-k8s-subnetwork() {
      local subnetwork_url
      subnetwork_url=$(gcloud compute instances describe \
        "${KUBE_MASTER}" --project="${PROJECT}" --zone="${ZONE}" \
        --format='value(networkInterfaces[0].subnetwork)')
      if [[ -n ${subnetwork_url} ]]; then
        IP_ALIAS_SUBNETWORK=${subnetwork_url##*/}
      fi
    }
    
    # Set IP_ALIAS_SUBNETWORK's allowSubnetCidrRoutesOverlap to a boolean value.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top