PR comnments
@@ -71,7 +71,6 @@ func (r *AsyncReconciler) Reconcile(req ctrl.Request, local runtime.Object) (res
// Check to see if the skipreconcile annotation is on
var skipReconcile bool
- skipReconcile = false
annotations := res.GetAnnotations()
if val, ok := annotations["skipreconcile"]; ok {
if strings.ToLower(val) == "true" {
@@ -79,7 +78,7 @@ func (r *AsyncReconciler) Reconcile(req ctrl.Request, local runtime.Object) (res
}
}
- if skipReconcile == true {
+ if skipReconcile {
// if this is a delete we should delete the finalizer to allow the kube instance to be deleted
if !res.GetDeletionTimestamp().IsZero() {
if HasFinalizer(res, finalizerName) {
