Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for labelServiceName (0.32 sec)

  1. pkg/controller/endpointslicemirroring/utils_test.go

    			name: "create slice from endpoints",
    			tweakEndpoint: func(ep *v1.Endpoints) {
    			},
    			expectedSlice: discovery.EndpointSlice{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						discovery.LabelServiceName: endpoints.Name,
    						discovery.LabelManagedBy:   controllerName,
    					},
    					Annotations:     map[string]string{},
    					GenerateName:    fmt.Sprintf("%s-", endpoints.Name),
    					Namespace:       endpoints.Namespace,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 23 15:40:23 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/discovery/v1beta1/well_known_labels.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1beta1
    
    const (
    	// LabelServiceName is used to indicate the name of a Kubernetes service.
    	LabelServiceName = "kubernetes.io/service-name"
    	// LabelManagedBy is used to indicate the controller or entity that manages
    	// an EndpointSlice. This label aims to enable different EndpointSlice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 19:43:32 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/discovery/v1/well_known_labels.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    const (
    	// LabelServiceName is used to indicate the name of a Kubernetes service.
    	LabelServiceName = "kubernetes.io/service-name"
    	// LabelManagedBy is used to indicate the controller or entity that manages
    	// an EndpointSlice. This label aims to enable different EndpointSlice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 05 20:02:41 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  4. pkg/controller/endpointslicemirroring/utils.go

    	if endpointSlice == nil {
    		return "", fmt.Errorf("nil EndpointSlice passed to serviceControllerKey()")
    	}
    	serviceName, ok := endpointSlice.Labels[discovery.LabelServiceName]
    	if !ok || serviceName == "" {
    		return "", fmt.Errorf("EndpointSlice missing %s label", discovery.LabelServiceName)
    	}
    	return fmt.Sprintf("%s/%s", endpointSlice.Namespace, serviceName), nil
    }
    
    // skipMirror return true if the LabelSkipMirror label has been set to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  5. pkg/controlplane/reconcilers/helpers_test.go

    	slice := &discoveryv1.EndpointSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: metav1.NamespaceDefault,
    			Name:      name,
    			Labels: map[string]string{
    				discoveryv1.LabelServiceName: name,
    			},
    		},
    		AddressType: discoveryv1.AddressTypeIPv4,
    		Endpoints:   make([]discoveryv1.Endpoint, len(ips)),
    		Ports:       make([]discoveryv1.EndpointPort, len(ports)),
    	}
    	ready := true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/endpointslice_test.go

    	svc1Ips := []string{"128.0.0.1"}
    	portNames := []string{"tcp-port"}
    	createEndpoints(t, controller, svcName, ns, portNames, svc1Ips, nil, map[string]string{
    		mcs.LabelServiceName: svcName,
    	})
    	fx.AssertEmpty(t, time.Millisecond*50)
    
    	// Ensure that no endpoint is create
    	endpoints := GetEndpoints(svc, controller.Endpoints)
    	assert.Equal(t, len(endpoints), 0)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. pkg/controlplane/reconcilers/endpointsadapter.go

    	endpointSlice := &discovery.EndpointSlice{}
    	endpointSlice.Name = endpoints.Name
    	endpointSlice.Namespace = endpoints.Namespace
    	endpointSlice.Labels = map[string]string{discovery.LabelServiceName: endpoints.Name}
    
    	// TODO: Add support for dual stack here (and in the rest of
    	// EndpointsAdapter).
    	endpointSlice.AddressType = discovery.AddressTypeIPv4
    
    	if len(endpoints.Subsets) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 27 12:46:23 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  8. pilot/pkg/xds/cds_test.go

    		},
    	}
    	endpoint := &discoveryv1.EndpointSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      service.Name,
    			Namespace: service.Namespace,
    			Labels: map[string]string{
    				discoveryv1.LabelServiceName: service.Name,
    			},
    		},
    		Endpoints: []discoveryv1.Endpoint{{
    			Addresses: []string{pod.Status.PodIP},
    			TargetRef: &v1.ObjectReference{
    				Kind:      "Pod",
    				Namespace: pod.Namespace,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 02:06:39 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top