Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for EndpointSubset (0.2 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/endpointsubset.go

    	Ports             []EndpointPortApplyConfiguration    `json:"ports,omitempty"`
    }
    
    // EndpointSubsetApplyConfiguration constructs an declarative configuration of the EndpointSubset type for use with
    // apply.
    func EndpointSubset() *EndpointSubsetApplyConfiguration {
    	return &EndpointSubsetApplyConfiguration{}
    }
    
    // WithAddresses adds the given value to the Addresses field in the declarative configuration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. pkg/api/v1/endpoints/util.go

    )
    
    // RepackSubsets takes a slice of EndpointSubset objects, expands it to the full
    // representation, and then repacks that into the canonical layout.  This
    // ensures that code which operates on these objects can rely on the common
    // form for things like comparison.  The result is a newly allocated slice.
    func RepackSubsets(subsets []v1.EndpointSubset) []v1.EndpointSubset {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 07 07:01:25 UTC 2018
    - 8K bytes
    - Viewed (0)
  3. 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)
  4. pkg/registry/core/endpoint/storage/storage_test.go

    	return rest, server
    }
    
    func validNewEndpoints() *api.Endpoints {
    	return &api.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: metav1.NamespaceDefault,
    		},
    		Subsets: []api.EndpointSubset{{
    			Addresses: []api.EndpointAddress{{IP: "1.2.3.4"}},
    			Ports:     []api.EndpointPort{{Port: 80, Protocol: "TCP"}},
    		}},
    	}
    }
    
    func TestCreate(t *testing.T) {
    	storage, server := newStorage(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  5. pkg/controller/endpointslicemirroring/events.go

    	// InvalidIPAddress indicates that an IP address found in an Endpoints
    	// resource is invalid.
    	InvalidIPAddress = "InvalidIPAddress"
    	// TooManyAddressesToMirror indicates that some addresses were not mirrored
    	// due to an EndpointSubset containing more addresses to mirror than
    	// MaxEndpointsPerSubset allows.
    	TooManyAddressesToMirror = "TooManyAddressesToMirror"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 19:43:35 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  6. pkg/controller/endpointslicemirroring/config/types.go

    	MirroringConcurrentServiceEndpointSyncs int32
    
    	// mirroringMaxEndpointsPerSubset is the maximum number of endpoints that
    	// will be mirrored to an EndpointSlice for an EndpointSubset.
    	MirroringMaxEndpointsPerSubset int32
    
    	// mirroringEndpointUpdatesBatchPeriod can be used to batch EndpointSlice
    	// updates. All updates triggered by EndpointSlice changes will be delayed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 19:43:33 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  7. pkg/api/endpoints/testing/make.go

    	// present and valid here.
    	eps := &api.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: metav1.NamespaceDefault,
    		},
    		Subsets: []api.EndpointSubset{{
    			Addresses: addrs,
    			Ports:     ports,
    		}},
    	}
    
    	for _, tweak := range tweaks {
    		tweak(eps)
    	}
    
    	return eps
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 02 01:26:45 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/printers/jsonpath_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}},
    			}}},
    	}
    
    	// Set of strings representing objects that should produce an error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 15 21:58:20 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/printers/template_test.go

    	objects := []runtime.Object{
    		&v1.Pod{ObjectMeta: om("pod")},
    		&v1.PodList{},
    		&v1.PodList{Items: []v1.Pod{{}}},
    		&v1.Endpoints{
    			Subsets: []v1.EndpointSubset{{
    				Addresses: []v1.EndpointAddress{{IP: "127.0.0.1"}, {IP: "localhost"}},
    				Ports:     []v1.EndpointPort{{Port: 8080}},
    			}}},
    	}
    
    	for _, obj := range objects {
    		b := &bytes.Buffer{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 22 23:10:00 UTC 2019
    - 7.1K bytes
    - Viewed (0)
  10. 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)
Back to top