Skip to content

Commit

Permalink
kubernetesapply: Update the reconciler to be level-triggered rather t…
Browse files Browse the repository at this point in the history
…han edge-triggered (#5556)

* kubernetesapply: Update the reconciler to be level-triggered rather than edge-triggered

* fix a bad err
  • Loading branch information
nicks authored Mar 3, 2022
1 parent fddce0b commit 443a288
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 404 deletions.
4 changes: 4 additions & 0 deletions internal/controllers/core/kubernetesapply/disco.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func (r *Reconciler) toDesiredKubernetesDiscovery(ka *v1alpha1.KubernetesApply)
return nil, nil
}

if ka.Status.DisableStatus != nil && ka.Status.DisableStatus.State == v1alpha1.DisableStateDisabled {
return nil, nil
}

watchRefs, err := r.toWatchRefs(ka)
if err != nil {
return nil, err
Expand Down
Loading

0 comments on commit 443a288

Please sign in to comment.