-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
After the initial deployment of Operator + Vector + VectorPipeline crds I'm getting the following error in the operator logs:
2025-02-05T09:58:15Z ERROR Reconciler error {"controller": "vector", "controllerGroup": "observability.kaasops.io", "controllerKind": "Vector", "Vector": {"name":"vector"}, "namespace": "", "name": "vector", "reconcileID": "52f7d9ac-c5f1-4ead-a218-a324a9104a9e", "error": "Operation cannot be fulfilled on vectors.observability.kaasops.io \"vector\": the object has been modified; please apply your changes to the latest version and try again"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:316
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:263
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.0/pkg/internal/controller/controller.go:224
It can be fixed by manually by deleting vector-operator pod, but maybe there's another possible solution?
I see the following in the vector_controller.go:
if err := vaCtrl.SetSuccessStatus(ctx, &cfgHash, cfg.GetGlobalConfigHash()); err != nil {
// TODO: Handle err: Operation cannot be fulfilled on vectors.observability.kaasops.io \"vector-sample\": the object has been modified; please apply your changes to the latest version and try again
if api_errors.IsConflict(err) {
return ctrl.Result{}, err
}
return ctrl.Result{}, err
}
Maybe someone can suggest how this TODO can be implemented?
Metadata
Metadata
Assignees
Labels
No labels