Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 186 for NodeName (0.29 sec)

  1. cmd/kubeadm/app/phases/kubelet/flags_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			nodeName, hostname, err := GetNodeNameAndHostname(tc.opts.nodeRegOpts)
    			if err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    			if nodeName != tc.expectedNodeName {
    				t.Errorf("expected nodeName: %v, got %v", tc.expectedNodeName, nodeName)
    			}
    			if hostname != tc.expectedHostName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. cmd/http-tracer.go

    		for k, v := range reqHeaders {
    			inputBytes += len(k) + len(v)
    		}
    
    		// Calculate node name
    		nodeName := r.Host
    		if globalIsDistErasure {
    			nodeName = globalLocalNodeName
    		}
    		if host, port, err := net.SplitHostPort(nodeName); err == nil {
    			if port == "443" || port == "80" {
    				nodeName = host
    			}
    		}
    
    		// Calculate reqPath
    		reqPath := r.URL.RawPath
    		if reqPath == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/metrics/metrics_test.go

    	nodeName := k8stypes.NodeName("node-name")
    
    	dsw.AddNode(nodeName)
    	_, err := dsw.AddPod(types.UniquePodName(podName), controllervolumetesting.NewPod(podName, podName), volumeSpec, nodeName)
    	if err != nil {
    		t.Fatalf("Expected no error, got %v", err)
    	}
    	logger, _ := ktesting.NewTestContext(t)
    	asw.AddVolumeNode(logger, volumeName, volumeSpec, nodeName, "", true)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. pkg/volume/util/operationexecutor/fakegenerator.go

    	return f.recordFuncCall("GenerateDetachVolumeFunc"), nil
    }
    
    func (f *fakeOGCounter) GenerateVolumesAreAttachedFunc(attachedVolumes []AttachedVolume, nodeName types.NodeName, actualStateOfWorld ActualStateOfWorldAttacherUpdater) (volumetypes.GeneratedOperations, error) {
    	return f.recordFuncCall("GenerateVolumesAreAttachedFunc"), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.Endpoints.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.Endpoints.yaml

      - hostname: hostnameValue
        ip: ipValue
        nodeName: nodeNameValue
        targetRef:
          apiVersion: apiVersionValue
          fieldPath: fieldPathValue
          kind: kindValue
          name: nameValue
          namespace: namespaceValue
          resourceVersion: resourceVersionValue
          uid: uidValue
      notReadyAddresses:
      - hostname: hostnameValue
        ip: ipValue
        nodeName: nodeNameValue
        targetRef:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. pkg/proxy/kubemark/hollow_proxy.go

    			},
    
    			Client:      client,
    			Proxier:     &FakeProxier{},
    			Broadcaster: broadcaster,
    			Recorder:    recorder,
    			NodeRef: &v1.ObjectReference{
    				Kind:      "Node",
    				Name:      nodeName,
    				UID:       types.UID(nodeName),
    				Namespace: "",
    			},
    		},
    	}
    }
    
    func (hp *HollowProxy) Run() error {
    
    	if err := hp.ProxyServer.Run(context.TODO()); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil_test.go

    )
    
    func TestGetPodIPIfPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "derp",
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    
    	podIPs := GetPodIPsIfPresent(pod)
    	assert.Equal(t, len(podIPs), 1)
    }
    
    func TestGetPodIPsIfPodIPPresent(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 19:29:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. pkg/kubelet/runonce_test.go

    	kb.resourceAnalyzer = stats.NewResourceAnalyzer(kb, volumeStatsAggPeriod, kb.recorder)
    	nodeRef := &v1.ObjectReference{
    		Kind:      "Node",
    		Name:      string(kb.nodeName),
    		UID:       types.UID(kb.nodeName),
    		Namespace: "",
    	}
    	fakeKillPodFunc := func(pod *v1.Pod, evict bool, gracePeriodOverride *int64, fn func(*v1.PodStatus)) error {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/registry.go

    		imagelocality.Name:                   imagelocality.New,
    		tainttoleration.Name:                 runtime.FactoryAdapter(fts, tainttoleration.New),
    		nodename.Name:                        nodename.New,
    		nodeports.Name:                       nodeports.New,
    		nodeaffinity.Name:                    nodeaffinity.New,
    		podtopologyspread.Name:               runtime.FactoryAdapter(fts, podtopologyspread.New),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top