Skip to content

Commit

Permalink
Fix erroring CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jbiers committed Feb 3, 2025
1 parent 1fb92f0 commit cba290d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/helm-locker/controllers/release/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,13 @@ func (h *handler) OnHelmReleaseRemove(_ string, helmRelease *v1alpha1.HelmReleas
}

func (h *handler) OnHelmRelease(_ string, helmRelease *v1alpha1.HelmRelease) (*v1alpha1.HelmRelease, error) {
logrus.Debugf("Handling HelmRelease %s", helmRelease.GetName())

if shouldManage, err := h.shouldManage(helmRelease); err != nil {
logrus.Warnf("error on running shoulManage for HelmRelease %s: %s", helmRelease.GetName(), err)
return helmRelease, err
} else if !shouldManage {
logrus.Debugf("HelmRelease %s will not be managed by this operator.", helmRelease.GetName())
return helmRelease, nil
}
if helmRelease.DeletionTimestamp != nil {
logrus.Debugf("HelmRelease %s has a non-nil deletion timestamp.", helmRelease.GetName())
return helmRelease, nil
}
releaseKey := releaseKeyFromRelease(helmRelease)
Expand Down

0 comments on commit cba290d

Please sign in to comment.