VictoriaMetrics / operator

Kubernetes operator for Victoria Metrics
Apache License 2.0
406 stars 142 forks source link

controllers/finalize: Remove finalizer for child objects for non zero DeletionTimestamp #956

Closed f41gh7 closed 1 month ago

f41gh7 commented 1 month ago

Kubernetes performs soft delete and waits for object hard delete until finalizers == 0. During that period any actions for soft deleted objects aren't performend. It caues weird behavior for service accounts, deployments and etc. When kubernetes-controller manager ignores actions that must be performend with it. For instance, pod creation for soft deleted deployment.

Operator now detects soft delete and free objects. An object ll be recreate at the next reconcile loop and error message ll be logged.

https://github.com/VictoriaMetrics/operator/issues/953