// CheckGracefulDelete sets the UserInfo on the resource to that of the user that
// initiated the delete.
// Note that this is a hack way of setting the UserInfo. However, there is not
// currently any other mechanism in the Delete strategies for getting access to
// the resource being deleted and the context.
CheckGracefulDelete sets the UserInfo on the resource to that of the user that
initiated the delete.
Note that this is a hack way of setting the UserInfo. However, there is not
currently any other mechanism in the Delete strategies for getting access to
the resource being deleted and the context.
// CheckGracefulDelete sets the UserInfo on the resource to that of the user that // initiated the delete . // Note that this is a hack way of setting the UserInfo . However there is not // currently any other mechanism in the Delete strategies for getting access to // the resource being deleted and the context .
func (instanceRESTStrategy) CheckGracefulDelete(ctx context.Context, obj runtime.Object, options *metav1.DeleteOptions) bool {
	if utilfeature.DefaultFeatureGate.Enabled(scfeatures.OriginatingIdentity) {
		serviceInstance, ok := obj.(*sc.ServiceInstance)
		if !ok {
			glog.Fatal("received a non-instance object to delete")
		}
		setServiceInstanceUserInfo(ctx, serviceInstance)
	}
	return false
}
func ( instanceRESTStrategy ) CheckGracefulDelete ( ctx context . Context , obj runtime . Object , options * metav1 . DeleteOptions ) bool { if utilfeature . DefaultFeatureGate . Enabled ( scfeatures . OriginatingIdentity ) { serviceInstance , ok := obj . ( * sc . ServiceInstance ) if ! ok { glog . Fatal ( " " ) } setServiceInstanceUserInfo ( ctx , serviceInstance ) } return false }
CheckGracefulDelete sets the UserInfo on the resource to that of the user that
initiated the delete.
CheckGracefulDelete sets the UserInfo on the resource to that of the user that initiated the delete .
// Don't actually do graceful deletion. We are just using this strategy to set the user info prior to reconciling the delete.