Can I create only one resource on creation of resource of specific type?


#1

I have custom defined resource and controller for it. Resource is needed to store some properties for other resources.
Initially, my cluster has no resources of such type.
When I add first property resource to cluster, I want my controller to start.
When I add one more resource, controller is already running and there is no need to start it.

I plan start my controller as kubernetes service.

Is there any ways to do that?