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 dae1057
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 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,17 @@ 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())
logrus.Debugf("Handling HelmRelease %s", helmRelease.Spec.Release.Name)

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

0 comments on commit dae1057

Please sign in to comment.