// markUnmanaged removes the supplied resource from management by ACK.
// It removes the finalizer string, patches the object in etcd and updates
// the object 'res' in parameter with latest metadata.
markUnmanaged removes the supplied resource from management by ACK.
It removes the finalizer string, patches the object in etcd and updates
the object 'res' in parameter with latest metadata.
// markUnmanaged removes the supplied resource from management by ACK . // It removes the finalizer string patches the object in etcd and updates // the object ' res ' in parameter with latest metadata .
func (r *fieldExportReconciler) markUnmanaged(
	ctx context.Context,
	res *ackv1alpha1.FieldExport,
) error {
	if k8sctrlutil.ContainsFinalizer(res, fieldExportFinalizerString) {
		base := res.DeepCopy()
		k8sctrlutil.RemoveFinalizer(res, fieldExportFinalizerString)
		return r.patchMetadataAndSpec(ctx, res, base)
	}
	return nil
}
func ( r * fieldExportReconciler ) markUnmanaged ( ctx context . Context , res * ackv1alpha1 . FieldExport , ) error { if k8sctrlutil . ContainsFinalizer ( res , fieldExportFinalizerString ) { base := res . DeepCopy ( ) k8sctrlutil . RemoveFinalizer ( res , fieldExportFinalizerString ) return r . patchMetadataAndSpec ( ctx , res , base ) } return nil }
markUnmanaged removes the supplied resource from management by ACK.
markUnmanaged removes the supplied resource from management by ACK .