Closed Marlinc closed 1 month ago
Name | Link |
---|---|
Latest commit | 249280183b9a06ef95ac1fd88f96284baea2a164 |
Latest deploy log | https://app.netlify.com/sites/kamaji-documentation/deploys/66c727341cc94d00089fbef7 |
Several adopters reported this, and it's a neat feature/bug.
I'll be happy to have a different approach, tho: the Resource Handler is an interface with the following functions.
The function ShouldCleanup
is the one responsible for deleting the CoreDNS, as well as other add-ons.
For the given CoreDNS, we're just checking if the Specification addons are set to nil, but this is not efficient and not idempotent.
Since the TenantControlPlane API is storing the status, we could rely on a different condition here, such as:
return tcp.Spec.Addons.CoreDNS == nil && tcp.Status.Addons.CoreDNS.Enabled
The said condition should be true when CoreDNS is disabled in the spec
, but the status still reports an enabled CoreDNS
deployment.
Upon completion of the deletion here with an Updated
resource, a status update is performed, meaning we're ending up with the correct reporting
The same logic could be used for the other addons, maybe we could have some trouble with the konnectivity one since it is much more complicated.
This is still a draft