Description
Hello,
We are migrating a Helm Chart to Operator based provisioning of an application. We have a case where a couple of Secret
and ConfigMap
dependent resources should have their data managed/updated by another controller, which is independent of our Operator. However, our operator is expected to create these resources with some predefined data when an instance of a primary CR is created and to respectively delete them, when the primary resource is removed from the cluster.
Can we achieve this, by creating a dependent resources for the aforementioned resources, which extends CRUDNoGCKubernetesDependentResource
and possibly override the match
method from KubernetesDependentResource
as described in the docs? What value should we return to indicate to the framework, that the current desired state of the resource matches the one in the cluster?
Best Regards,
Ivan