GoogleCloudPlatform / metacontroller

Lightweight Kubernetes controllers as a service
https://metacontroller.app/
Apache License 2.0
792 stars 111 forks source link

Can't seem to clean up resources with incorrect apiVersion #175

Open mukaibot opened 5 years ago

mukaibot commented 5 years ago

I have created a CRD for a kind "Foobar". It has the apiVersion my-api.foo.net/v1alpha1. However I created a CR with kind "Foobar" and apiVersion foobar.my-api.foo.net/v1alpha1.

This seems to create a lot of errors in the metacontroller logs about not being able to sync the CompositeController: E0702 06:52:40.011792 1 metacontroller.go:133] failed to sync CompositeController "foobar-operator": discovery: can't find resource Foobar in apiVersion foobar.my-api.foo.net/v1alpha1

Is there a way I can delete these bad resources from the workqueue? They don't seem to show up with kubectl get foobar

tigris commented 5 years ago

+1 from me, just accidentally did the same thing