Skip to content

bug: CachedResource fails to delete when resource does not exists or isn't valid #3729

@olamilekan000

Description

@olamilekan000

When trying to delete a CachedResource with a resource that doesn’t exist, the deletion process hangs in the terminal and times out after a while.
The log below is what is being logged when the error happens

E1123 05:32:43.352648   35874 cachedresources_reconcile_replication.go:90] "Failed to get Kind for resource" err="no matches for apps/v1, Resource=deployments" component="kcp" postStartHook="kcp-start-controllers" reconciler="kcp-cached-resources-controller" key="1l5sxijy0c6hwyoh|test-bad" cachedresource.workspace="1l5sxijy0c6hwyoh" cachedresource.namespace="" cachedresource.name="test-bad" cachedresource.apiVersion="" resource="apps/v1, Resource=deployments"

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions