Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for endpointSlice (0.27 sec)

  1. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    	slices        kclient.Client[*v1.EndpointSlice]
    	c             *Controller
    }
    
    var (
    	endpointSliceRequirement = labelRequirement(mcs.LabelServiceName, selection.DoesNotExist, nil)
    	endpointSliceSelector    = klabels.NewSelector().Add(*endpointSliceRequirement)
    )
    
    func newEndpointSliceController(c *Controller) *endpointSliceController {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller.go

    	endpointSlice := obj.(*discovery.EndpointSlice)
    	prevEndpointSlice := prevObj.(*discovery.EndpointSlice)
    	if endpointSlice == nil || prevEndpointSlice == nil {
    		utilruntime.HandleError(fmt.Errorf("onEndpointSliceUpdated() expected type discovery.EndpointSlice, got %T, %T", prevObj, obj))
    		return
    	}
    	// EndpointSlice generation does not change when labels change. Although the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 23:18:31 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller_test.go

    				}
    
    				if endpointSlices[0].Name != tc.endpointSlice.Name {
    					t.Fatalf("Expected %s EndpointSlice to be in list, got %s", tc.endpointSlice.Name, endpointSlices[0].Name)
    				}
    			} else {
    				if len(endpointSlices) != 0 {
    					t.Fatalf("Expected no EndpointSlices to be in list, got %d", len(endpointSlices))
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  4. pkg/controller/endpointslicemirroring/reconciler.go

    	var errs []error
    	for _, endpointSlice := range endpointSlices {
    		err := r.client.DiscoveryV1().EndpointSlices(namespace).Delete(context.TODO(), endpointSlice.Name, metav1.DeleteOptions{})
    		if err != nil {
    			errs = append(errs, err)
    		}
    	}
    	if len(errs) > 0 {
    		return fmt.Errorf("error(s) deleting %d/%d EndpointSlices for %s/%s Endpoints, including: %s", len(errs), len(endpointSlices), namespace, name, errs[0])
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. pkg/controller/endpointslice/endpointslice_controller.go

    }
    
    func dropEndpointSlicesPendingDeletion(endpointSlices []*discovery.EndpointSlice) []*discovery.EndpointSlice {
    	n := 0
    	for _, endpointSlice := range endpointSlices {
    		if endpointSlice.DeletionTimestamp == nil {
    			endpointSlices[n] = endpointSlice
    			n++
    		}
    	}
    	return endpointSlices[:n]
    }
    
    // getEndpointSliceFromDeleteAction parses an EndpointSlice from a delete action.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  6. pkg/registry/discovery/endpointslice/strategy_test.go

    				t.Logf("actual endpointslice: %v", tc.newEPS)
    				t.Logf("expected endpointslice: %v", tc.expectedEPS)
    				t.Errorf("unexpected EndpointSlice on API topology strategy")
    			}
    		})
    	}
    }
    
    func Test_getDeprecatedTopologyNodeNames(t *testing.T) {
    	testcases := []struct {
    		name              string
    		endpointSlice     *discovery.EndpointSlice
    		expectedNodeNames sets.String
    	}{
    		{
    			name: "2 nodes",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  7. pkg/proxy/config/config_test.go

    	state   map[types.NamespacedName]*discoveryv1.EndpointSlice
    	synced  bool
    	updated chan []*discoveryv1.EndpointSlice
    	process func([]*discoveryv1.EndpointSlice)
    }
    
    func NewEndpointSliceHandlerMock() *EndpointSliceHandlerMock {
    	ehm := &EndpointSliceHandlerMock{
    		state:   make(map[types.NamespacedName]*discoveryv1.EndpointSlice),
    		updated: make(chan []*discoveryv1.EndpointSlice, 5),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. pkg/proxy/endpointslicecache_test.go

    	original runtime.Object
    	deepCopy runtime.Object
    }
    
    // newCacheMutationCheck initializes a cacheMutationCheck with EndpointSlices.
    func newCacheMutationCheck(endpointSlices []*discovery.EndpointSlice) cacheMutationCheck {
    	cmc := cacheMutationCheck{}
    	for _, endpointSlice := range endpointSlices {
    		cmc.Add(endpointSlice)
    	}
    	return cmc
    }
    
    // Add appends a runtime.Object and a deep copy of that object into the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. pkg/apis/discovery/validation/validation_test.go

    	standardMeta := metav1.ObjectMeta{
    		Name:      "hello",
    		Namespace: "world",
    	}
    
    	testCases := map[string]struct {
    		expectedErrors int
    		endpointSlice  *discovery.EndpointSlice
    	}{
    		"good-slice": {
    			expectedErrors: 0,
    			endpointSlice: &discovery.EndpointSlice{
    				ObjectMeta:  standardMeta,
    				AddressType: discovery.AddressTypeIPv4,
    				Ports: []discovery.EndpointPort{{
    					Name:     utilpointer.String("http"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  10. pkg/proxy/endpointslicecache.go

    func endpointSliceCacheKeys(endpointSlice *discovery.EndpointSlice) (types.NamespacedName, string, error) {
    	var err error
    	serviceName, ok := endpointSlice.Labels[discovery.LabelServiceName]
    	if !ok || serviceName == "" {
    		err = fmt.Errorf("no %s label set on endpoint slice: %s", discovery.LabelServiceName, endpointSlice.Name)
    	} else if endpointSlice.Namespace == "" || endpointSlice.Name == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (1)
Back to top