Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hostnameFunc (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/config.go

    	// install apis
    	_ "k8s.io/apiserver/pkg/apis/apiserver/install"
    )
    
    // hostnameFunc is a function to set the hostnameFunc of this apiserver.
    // To be used for testing purpose only, to simulate scenarios where multiple apiservers
    // exist. In such cases we want to ensure unique apiserver IDs which are a hash of hostnameFunc.
    var (
    	hostnameFunc = os.Hostname
    )
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server_test.go

    func TestHealthCheck(t *testing.T) {
    	fw := newServerTest()
    	defer fw.testHTTPServer.Close()
    	fw.fakeKubelet.hostnameFunc = func() string {
    		return "127.0.0.1"
    	}
    
    	// Test with correct hostname, Docker version
    	assertHealthIsOk(t, fw.testHTTPServer.URL+"/healthz")
    
    	// Test with incorrect hostname
    	fw.fakeKubelet.hostnameFunc = func() string {
    		return "fake"
    	}
    	assertHealthIsOk(t, fw.testHTTPServer.URL+"/healthz")
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top