Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MakeEndpoints (0.22 sec)

  1. pkg/api/endpoints/testing/make.go

    	api "k8s.io/kubernetes/pkg/apis/core"
    )
    
    // Tweak is a function that modifies a Endpoints.
    type Tweak func(*api.Endpoints)
    
    // MakeEndpoints helps construct Endpoints objects (which pass API validation)
    // more legibly and tersely than a Go struct definition.
    func MakeEndpoints(name string, addrs []api.EndpointAddress, ports []api.EndpointPort, tweaks ...Tweak) *api.Endpoints {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 02 01:26:45 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  2. pkg/controlplane/reconcilers/helpers_test.go

    	k8stesting "k8s.io/client-go/testing"
    )
    
    func makeEndpointsArray(name string, ips []string, ports []corev1.EndpointPort) []runtime.Object {
    	return []runtime.Object{
    		makeEndpoints(name, ips, ports),
    		makeEndpointSlice(name, ips, ports),
    	}
    }
    
    func makeEndpoints(name string, ips []string, ports []corev1.EndpointPort) *corev1.Endpoints {
    	endpoints := &corev1.Endpoints{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top