code: func (cronJobStrategy) DefaultGarbageCollectionPolicy(ctx context.Context) rest.GarbageCollectionPolicy {
  	var groupVersion schema.GroupVersion
  	if requestInfo, found := genericapirequest.RequestInfoFrom(ctx); found {
  		groupVersion = schema.GroupVersion{Group: requestInfo.APIGroup, Version: requestInfo.APIVersion}
  	}
  	switch groupVersion {
  	case batchv1beta1.SchemeGroupVersion, batchv2alpha1.SchemeGroupVersion:
  		// for back compatibility
  		return rest.OrphanDependents
  	default:
  		return rest.DeleteDependents
  	}
  }
docs: // DefaultGarbageCollectionPolicy returns OrphanDependents for batch/v1beta1 and batch/v2alpha1 for backwards compatibility,
  // and DeleteDependents for all other versions.