Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getEndpointsFromDeleteAction (0.3 sec)

  1. pkg/controller/endpointslicemirroring/utils.go

    		utilruntime.HandleError(fmt.Errorf("tombstone contained object that is not a Service resource: %#v", obj))
    		return nil
    	}
    	return service
    }
    
    // getEndpointsFromDeleteAction parses an Endpoints resource from a delete
    // action.
    func getEndpointsFromDeleteAction(obj interface{}) *corev1.Endpoints {
    	if endpoints, ok := obj.(*corev1.Endpoints); ok {
    		return endpoints
    	}
    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/endpointslicemirroring/endpointslicemirroring_controller.go

    	}
    	c.queueEndpoints(obj)
    }
    
    // onEndpointsDelete queues a sync for the relevant Endpoints resource.
    func (c *Controller) onEndpointsDelete(logger klog.Logger, obj interface{}) {
    	endpoints := getEndpointsFromDeleteAction(obj)
    	if endpoints == nil {
    		utilruntime.HandleError(fmt.Errorf("onEndpointsDelete() expected type v1.Endpoints, got %T", obj))
    		return
    	}
    	if !c.shouldMirror(endpoints) {
    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