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

ApiToken: status.created inconsistent with status.conditions #132

Open
Starefossen opened this issue Jun 13, 2023 · 1 comment
Open

ApiToken: status.created inconsistent with status.conditions #132

Starefossen opened this issue Jun 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Starefossen
Copy link
Member

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 Starefossen added the bug Something isn't working label Jun 13, 2023
@Starefossen
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant