Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cronjob API Version Error #109

Open
infinitydon opened this issue Oct 9, 2023 · 1 comment
Open

Cronjob API Version Error #109

infinitydon opened this issue Oct 9, 2023 · 1 comment

Comments

@infinitydon
Copy link

Hi,

I am getting the following errors in the luigi controller logs in Kubernetes cluster 1.27 of which the new API reference is batch/v1 :

1.696892484733417e+09   ERROR   controllers.NetworkPlugins      Error applying unstructured object      {"error": "could not retrieve existing (batch/v1beta1, Kind=CronJob) kube-system/ip-reconciler: no matches for kind \"CronJob\" in version \"batch/v1beta1\"", "errorVerbose": "no matches for kind \"CronJob\" in version \"batch/v1beta1\"\ncould not retrieve existing (batch/v1beta1, Kind=CronJob) kube-system/ip-reconciler\ngithub.com/platform9/luigi/pkg/apply.ApplyObject\n\t/workspace/pkg/apply/apply.go:90\ngithub.com/platform9/luigi/controllers.(*NetworkPluginsReconciler).createPlugins\n\t/workspace/controllers/networkplugins_controller.go:725\ngithub.com/platform9/luigi/controllers.(*NetworkPluginsReconciler).Reconcile\n\t/workspace/controllers/networkplugins_controller.go:168\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581"}
github.com/platform9/luigi/controllers.(*NetworkPluginsReconciler).Reconcile
        /workspace/controllers/networkplugins_controller.go:168
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
        /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
        /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227
1.6968924847335455e+09  ERROR   controller.networkplugins       Reconciler error        {"reconciler group": "plumber.k8s.pf9.io", "reconciler kind": "NetworkPlugins", "name": "networkplugins-5gcore", "namespace": "default", "error": "could not retrieve existing (batch/v1beta1, Kind=CronJob) kube-system/ip-reconciler: no matches for kind \"CronJob\" in version \"batch/v1beta1\"", "errorVerbose": "no matches for kind \"CronJob\" in version \"batch/v1beta1\"\ncould not retrieve existing (batch/v1beta1, Kind=CronJob) kube-system/ip-reconciler\ngithub.com/platform9/luigi/pkg/apply.ApplyObject\n\t/workspace/pkg/apply/apply.go:90\ngithub.com/platform9/luigi/controllers.(*NetworkPluginsReconciler).createPlugins\n\t/workspace/controllers/networkplugins_controller.go:725\ngithub.com/platform9/luigi/controllers.(*NetworkPluginsReconciler).Reconcile\n\t/workspace/controllers/networkplugins_controller.go:168\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
        /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
        /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227
@joey00072
Copy link
Contributor

can you share version of luigi are you using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants