Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getEndpointSliceFromDeleteAction (0.4 sec)

  1. pkg/controller/endpointslicemirroring/utils.go

    		utilruntime.HandleError(fmt.Errorf("tombstone contained object that is not an Endpoints resource: %#v", obj))
    		return nil
    	}
    	return endpoints
    }
    
    // getEndpointSliceFromDeleteAction parses an EndpointSlice from a delete action.
    func getEndpointSliceFromDeleteAction(obj interface{}) *discovery.EndpointSlice {
    	if endpointSlice, ok := obj.(*discovery.EndpointSlice); ok {
    		return endpointSlice
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. pkg/controller/endpointslice/endpointslice_controller.go

    		if endpointSlice.DeletionTimestamp == nil {
    			endpointSlices[n] = endpointSlice
    			n++
    		}
    	}
    	return endpointSlices[:n]
    }
    
    // getEndpointSliceFromDeleteAction parses an EndpointSlice from a delete action.
    func getEndpointSliceFromDeleteAction(obj interface{}) *discovery.EndpointSlice {
    	if endpointSlice, ok := obj.(*discovery.EndpointSlice); ok {
    		// Enqueue all the services that the pod used to be a member of.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller.go

    // sync if the EndpointSlice resource version does not match the expected
    // version in the endpointSliceTracker.
    func (c *Controller) onEndpointSliceDelete(obj interface{}) {
    	endpointSlice := getEndpointSliceFromDeleteAction(obj)
    	if endpointSlice == nil {
    		utilruntime.HandleError(fmt.Errorf("onEndpointSliceDelete() expected type discovery.EndpointSlice, got %T", obj))
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 23:18:31 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top