Skip to content

Commit

Permalink
Skip stale project reconciliation when deletionTimestamp is already set
Browse files Browse the repository at this point in the history
```other operator
A bug has been fixed in `gardener-controller-manager`'s `Project` controller that can lead to a continuous reconciliation of `Project` resources if they are stuck in `Terminating` state.
```
  • Loading branch information
rfranzke authored and ialidzhikov committed Jan 11, 2021
1 parent 3d27d2e commit 56b5c5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ type projectInUseChecker struct {
}

func (c *defaultStaleControl) ReconcileStaleProject(obj *gardencorev1beta1.Project, nowFunc func() metav1.Time) error {
if obj.Spec.Namespace == nil {
if obj.DeletionTimestamp != nil || obj.Spec.Namespace == nil {
return nil
}

Expand Down

0 comments on commit 56b5c5a

Please sign in to comment.