ApiToken: status.created inconsistent with status.conditions
Opened this issue · 1 comments
Starefossen commented
Status:
Conditions:
Last Transition Time: 2023-06-13T10:45:39Z
Message: API token successfully created
Reason: Reconciling
Status: True
Type: Created
Created: false
Failed: false
This is inconsistent with the status.conditions
Starefossen commented
Might be related:
2023-06-13T10:45:39Z ERROR Failed to update ApiToken to add finalizer {"controller": "apitoken", "controllerGroup": "unleash.nais.io", "controllerKind": "ApiToken", "ApiToken": {"name":"<redacted>","namespace":"<redacted>"}, "namespace": "<redacted>", "name": "<redacted>", "reconcileID": "c4f875a8-1b09-483e-be08-e932f77dc096", "error": "Operation cannot be fulfilled on apitokens.unleash.nais.io \"<redacted>\": the object has been modified; please apply your changes to the latest version and try again"}
github.com/nais/unleasherator/controllers.(*ApiTokenReconciler).Reconcile
/workspace/controllers/apitoken_controller.go:111
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
2023-06-13T10:45:39Z ERROR Reconciler error {"controller": "apitoken", "controllerGroup": "unleash.nais.io", "controllerKind": "ApiToken", "ApiToken": {"name":"<redacted>","namespace":"<redacted>"}, "namespace": "<redacted>", "name": "<redacted>", "reconcileID": "c4f875a8-1b09-483e-be08-e932f77dc096", "error": "Operation cannot be fulfilled on apitokens.unleash.nais.io \"<redacted>\": 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.14.6/pkg/internal/controller/controller.go:329
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