You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
An unhandled error occurs when deleting a SleepInfo resource. The controller logs show an error related to fetching the SleepInfo resource after it has been deleted, indicating it cannot find the deleted resource.
To Reproduce
Steps to reproduce the behavior:
Create a SleepInfo resource named sleep-test in the namespace sleepme.
Delete the SleepInfo resource.
Observe the error in the controller logs indicating the resource cannot be found.
Logs
2024-03-07T08:14:00Z INFO controllers.SleepInfo last schedule value {"sleepinfo": "sleepme/sleep-test", "now": "2024-03-07T08:14:00Z", "next run": "2024-03-07T08:20:00Z", "requeue": "5m59.933043022s", "last schedule": "2024-03-07T08:14:00Z", "status": {"lastScheduleTime":"2024-03-07T08:10:00Z","operation":"SLEEP"}}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:235
2024-03-07T08:20:00Z ERROR controllers.SleepInfo unable to fetch sleepInfo {"sleepinfo": "sleepme/sleep-test", "error": "SleepInfo.kube-green.com \"sleep-test\" not found"}
github.com/kube-green/kube-green/controllers/sleepinfo.(*SleepInfoReconciler).Reconcile
/workspace/controllers/sleepinfo/sleepinfo_controller.go:80
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:122
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:323
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:274
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:235
The text was updated successfully, but these errors were encountered:
Description
An unhandled error occurs when deleting a
SleepInfo
resource. The controller logs show an error related to fetching theSleepInfo
resource after it has been deleted, indicating it cannot find the deleted resource.To Reproduce
Steps to reproduce the behavior:
SleepInfo
resource namedsleep-test
in the namespacesleepme
.SleepInfo
resource.Logs
The text was updated successfully, but these errors were encountered: