Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EndpointSubset (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go

    			}
    			ports = append(ports, v1.EndpointPort{Name: p.Name, Port: p.TargetPort.IntVal})
    		}
    
    		return []*v1.Endpoints{{
    			ObjectMeta: metav1.ObjectMeta{Namespace: svc.Namespace, Name: svc.Name},
    			Subsets: []v1.EndpointSubset{{
    				Addresses: []v1.EndpointAddress{{Hostname: "dummy-host", IP: "127.0.0.1"}},
    				Ports:     ports,
    			}},
    		}}
    	}
    
    	type expectation struct {
    		url   string
    		error bool
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:27 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/instancecount.go

    	// EndpointSlices. This may change in the future.
    	skipMirrorChanged := setSkipMirrorTrue(e)
    
    	if errors.IsNotFound(err) {
    		// Simply create non-existing endpoints for the service.
    		e.Subsets = []corev1.EndpointSubset{{
    			Addresses: []corev1.EndpointAddress{{IP: ip.String()}},
    			Ports:     endpointPorts,
    		}}
    		_, err = r.epAdapter.Create(metav1.NamespaceDefault, e)
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go

    		"pod":             &v1.Pod{ObjectMeta: om("pod")},
    		"emptyPodList":    &v1.PodList{},
    		"nonEmptyPodList": &v1.PodList{Items: []v1.Pod{{}}},
    		"endpoints": &v1.Endpoints{
    			Subsets: []v1.EndpointSubset{{
    				Addresses: []v1.EndpointAddress{{IP: "127.0.0.1"}, {IP: "localhost"}},
    				Ports:     []v1.EndpointPort{{Port: 8080}},
    			}}},
    	}
    
    	// Test PrintObj() success.
    	for pName, p := range genericPrinters {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. pkg/controller/endpointslicemirroring/utils_test.go

    	gvk := schema.GroupVersionKind{Version: "v1", Kind: "Endpoints"}
    
    	endpoints := v1.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: "test",
    		},
    		Subsets: []v1.EndpointSubset{{
    			Ports: []v1.EndpointPort{{Port: 80}},
    		}},
    	}
    	ownerRef := metav1.NewControllerRef(&endpoints, gvk)
    
    	testCases := []struct {
    		name          string
    		tweakEndpoint func(ep *v1.Endpoints)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 23 15:40:23 UTC 2022
    - 7.5K bytes
    - Viewed (0)
Back to top