Skip to content

Can you have dependent resources, which state is managed by another custom K8s controller #2106

Closed
@ivanchuchulski

Description

@ivanchuchulski

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 CRUDNoGCKubernetesDependentResourceand 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions