Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 206 for endpointSlice (0.2 sec)

  1. pkg/apis/discovery/v1beta1/zz_generated.conversion.go

    	if err := s.AddGeneratedConversionFunc((*v1beta1.EndpointSlice)(nil), (*discovery.EndpointSlice)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1beta1_EndpointSlice_To_discovery_EndpointSlice(a.(*v1beta1.EndpointSlice), b.(*discovery.EndpointSlice), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/discovery/v1beta1/well_known_labels.go

    	// LabelManagedBy is used to indicate the controller or entity that manages
    	// an EndpointSlice. This label aims to enable different EndpointSlice
    	// objects to be managed by different controllers or entities within the
    	// same cluster. It is highly recommended to configure this label for all
    	// EndpointSlices.
    	LabelManagedBy = "endpointslice.kubernetes.io/managed-by"
    	// LabelSkipMirror can be set to true on an Endpoints resource to indicate
    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. pkg/controller/endpointslice/endpointslice_controller_test.go

    		if endpointSlice.ObjectMeta.GenerateName != "" {
    			endpointSlice.ObjectMeta.Name = fmt.Sprintf("%s-%s", endpointSlice.ObjectMeta.GenerateName, rand.String(8))
    			endpointSlice.ObjectMeta.GenerateName = ""
    		}
    		endpointSlice.Generation = 1
    		esIndexer.Add(endpointSlice)
    
    		return false, endpointSlice, nil
    	}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  4. pkg/controller/endpointslicemirroring/metrics/cache.go

    // efficiency of EndpointSlice endpoints distribution.
    type Cache struct {
    	// maxEndpointsPerSlice references the maximum number of endpoints that
    	// should be added to an EndpointSlice.
    	maxEndpointsPerSlice int32
    
    	// lock protects changes to numEndpoints and cache.
    	lock sync.Mutex
    	// numEndpoints represents the total number of endpoints stored in
    	// EndpointSlices.
    	numEndpoints int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. api/discovery/apis__discovery.k8s.io__v1.json

    {
      "apiVersion": "v1",
      "groupVersion": "discovery.k8s.io/v1",
      "kind": "APIResourceList",
      "resources": [
        {
          "kind": "EndpointSlice",
          "name": "endpointslices",
          "namespaced": true,
          "singularName": "endpointslice",
          "storageVersionHash": "qgS0xkrxYAI=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
            "list",
            "patch",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 06:31:58 UTC 2024
    - 472 bytes
    - Viewed (0)
  6. pkg/apis/discovery/v1beta1/defaults_test.go

    	protoUDP := v1.ProtocolUDP
    
    	tests := map[string]struct {
    		original *discovery.EndpointSlice
    		expected *discovery.EndpointSlice
    	}{
    		"should set appropriate defaults": {
    			original: &discovery.EndpointSlice{Ports: []discovery.EndpointPort{{
    				Port: utilpointer.Int32(80),
    			}}},
    			expected: &discovery.EndpointSlice{
    				Ports: []discovery.EndpointPort{{
    					Name:     &emptyStr,
    					Protocol: &protoTCP,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:14:37 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. pkg/apis/discovery/validation/validation.go

    // ValidateEndpointSlice validates an EndpointSlice.
    func ValidateEndpointSlice(endpointSlice *discovery.EndpointSlice) field.ErrorList {
    	allErrs := apivalidation.ValidateObjectMeta(&endpointSlice.ObjectMeta, true, ValidateEndpointSliceName, field.NewPath("metadata"))
    	allErrs = append(allErrs, validateAddressType(endpointSlice.AddressType)...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 08:49:15 UTC 2021
    - 7.8K bytes
    - Viewed (0)
  8. pkg/proxy/endpointschangetracker_test.go

    				}
    			}
    		}
    	}
    }
    
    func initializeCache(endpointSliceCache *EndpointSliceCache, endpointSlices []*discovery.EndpointSlice) {
    	for _, endpointSlice := range endpointSlices {
    		endpointSliceCache.updatePending(endpointSlice, false)
    	}
    
    	for _, tracker := range endpointSliceCache.trackerByServiceMap {
    		tracker.applied = tracker.pending
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
  9. pkg/proxy/config/config.go

    	endpointSlice, ok := obj.(*discoveryv1.EndpointSlice)
    	if !ok {
    		utilruntime.HandleError(fmt.Errorf("unexpected object type: %T", obj))
    		return
    	}
    	for _, h := range c.eventHandlers {
    		c.logger.V(4).Info("Calling handler.OnEndpointSliceAdd", "endpoints", klog.KObj(endpointSlice))
    		h.OnEndpointSliceAdd(endpointSlice)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. pkg/proxy/endpointschangetracker.go

    // endpointSlice (depending on removeSlice). It returns true if this update contained a
    // change that needs to be synced; note that this is different from the return value of
    // ServiceChangeTracker.Update().
    func (ect *EndpointsChangeTracker) EndpointSliceUpdate(endpointSlice *discovery.EndpointSlice, removeSlice bool) bool {
    	if !supportedEndpointSliceAddressTypes.Has(endpointSlice.AddressType) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 13.2K bytes
    - Viewed (0)
Back to top