|
I came across this discussion which seems related: https://github.com/orgs/strimzi/discussions/9784. However, I think we went through an unexpected scenario and I would like to discuss it: We reset our lab cluster, and afterwards the From other Kubernetes operators I have worked with, a common pattern is to check the It seems to me that applying a What do you think about this approach? |
Replies: 3 comments 2 replies
|
The operator pattern does not work based on deletion events. It just reconciles the desired and actual state:
So when the resources are not there, it means in the desired state the resource should not exist. And the operator would update the actual state accordingly. Depending on the circumstances, it might find out about the deletion from the deletion event. But even if it misses the deletion event (e.g. when the User Operator was not running or when due to some error the deletion event was not received), it will sooner or later see that the resources are missing and delete them from Kafka. So this works as designed. I'm not sure what exactly it means that |
|
What do you mean by "we reset our lab cluster"? Did you delete the Kafka custom resource corresponding a Kafka cluster? Did you uninstall the operator? |
|
Hey @scholzj Thanks for the answer! @ppatierno Here a more detailed explanation what happens during the cluster reset and what that means in our setup:
What happens after a cluster reset:
The
This would not change the security model for the normal case. A resource that is explicitly deleted by a user or GitOps tooling will always have a |
Sorry, I still don't get this. If they were never deleted, then they:
For a migration from another cluster, you have to make sure you setup the KafkaUser resources first before deploying the operator.