Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 72 for Sethostname (0.26 sec)

  1. pkg/kubelet/volumemanager/volume_manager_test.go

    	volumetest "k8s.io/kubernetes/pkg/volume/testing"
    	"k8s.io/kubernetes/pkg/volume/util"
    	"k8s.io/kubernetes/pkg/volume/util/hostutil"
    	"k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    const (
    	testHostname = "test-hostname"
    )
    
    func TestGetMountedVolumesForPodAndGetVolumesInUse(t *testing.T) {
    	tests := []struct {
    		name            string
    		pvMode, podMode v1.PersistentVolumeMode
    		expectMount     bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/GradleVsMavenPerformanceTestRunner.groovy

                testId: testId,
                testProject: testProject,
                testGroup: testGroup,
                jvm: Jvm.current().toString(),
                host: InetAddress.getLocalHost().getHostName(),
                operatingSystem: OperatingSystem.current().toString(),
                versionUnderTest: GradleVersion.current().getVersion(),
                vcsBranch: Git.current().branchName,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. pkg/proxy/iptables/proxier_test.go

    			NodeName:   ptr.To(testHostname),
    		}, {
    			Addresses:  []string{"10.0.1.2"},
    			Conditions: discovery.EndpointConditions{Ready: ptr.To(true)},
    			NodeName:   ptr.To(testHostname),
    		}, {
    			Addresses:  []string{"10.0.1.3"},
    			Conditions: discovery.EndpointConditions{Ready: ptr.To(true)},
    			NodeName:   ptr.To(testHostname),
    		}, { // not ready endpoints should be ignored
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/services/NativeServices.java

        }
    
        @Provides
        protected HostnameLookup createHostnameLookup() {
            if (useNativeIntegrations) {
                try {
                    String hostname = Native.get(SystemInfo.class).getHostname();
                    return new FixedHostname(hostname);
                } catch (NativeIntegrationUnavailableException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

          )
        val request = RecordedRequest("GET / HTTP/1.1", headers, emptyList(), 0, Buffer(), 0, socket)
        assertThat(request.requestUrl.toString()).isEqualTo("http://127.0.0.1/")
      }
    
      @Test fun testHostname() {
        val headers = headersOf("Host", "host-from-header.com")
        val socket =
          FakeSocket(
            localAddress =
              InetAddress.getByAddress(
                "host-from-address.com",
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_getters_test.go

    	exp = filepath.Join(root, "pods/abc123/containers/def456")
    	assert.Equal(t, exp, got)
    
    	got = kubelet.getPodResourcesDir()
    	exp = filepath.Join(root, "pod-resources")
    	assert.Equal(t, exp, got)
    
    	got = kubelet.GetHostname()
    	exp = "127.0.0.1"
    	assert.Equal(t, exp, got)
    
    	got = kubelet.getPodVolumeSubpathsDir("abc123")
    	exp = filepath.Join(root, "pods/abc123/volume-subpaths")
    	assert.Equal(t, exp, got)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/volume_host.go

    }
    
    func (ctrl *PersistentVolumeController) GetMounter(pluginName string) mount.Interface {
    	return nil
    }
    
    func (ctrl *PersistentVolumeController) GetHostName() string {
    	return ""
    }
    
    func (ctrl *PersistentVolumeController) GetHostIP() (net.IP, error) {
    	return nil, fmt.Errorf("PersistentVolumeController.GetHostIP() is not implemented")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/net/dnsconfig_unix.go

    	if len(conf.servers) == 0 {
    		conf.servers = defaultNS
    	}
    	if len(conf.search) == 0 {
    		conf.search = dnsDefaultSearch()
    	}
    	return conf
    }
    
    func dnsDefaultSearch() []string {
    	hn, err := getHostname()
    	if err != nil {
    		// best effort
    		return nil
    	}
    	if i := bytealg.IndexByteString(hn, '.'); i >= 0 && i < len(hn)-1 {
    		return []string{ensureRooted(hn[i+1:])}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 22:14:43 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. pkg/volume/portworx/portworx.go

    }
    
    func (plugin *portworxVolumePlugin) Init(host volume.VolumeHost) error {
    	client, err := volumeclient.NewDriverClient(
    		fmt.Sprintf("http://%s", net.JoinHostPort(host.GetHostName(), strconv.Itoa(osdMgmtDefaultPort))),
    		pxdDriverName, osdDriverVersion, pxDriverName)
    	if err != nil {
    		return err
    	}
    
    	plugin.host = host
    	plugin.util = &portworxVolumeUtil{
    		portworxClient: client,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/syscall/syscall_solaris.go

    	r0, e1 := wait4(uintptr(pid), wstatus, uintptr(options), rusage)
    	if e1 != 0 {
    		err = Errno(e1)
    	}
    	return int(r0), err
    }
    
    func gethostname() (name string, err uintptr)
    
    func Gethostname() (name string, err error) {
    	name, e1 := gethostname()
    	if e1 != 0 {
    		err = Errno(e1)
    	}
    	return name, err
    }
    
    func UtimesNano(path string, ts []Timespec) error {
    	if len(ts) != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top