ydb-platform / ydb-kubernetes-operator

YDB Operator allows you to deploy your own YDB cluster in Kubernetes
Other
46 stars 16 forks source link

Use StatefulSet status instead of List Pod by selector labels #228

Closed kobzonega closed 2 months ago

kobzonega commented 2 months ago

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

After changes from PR #172 controllers are waiting for recreating pods with new label ydb.tech/statefulset-name. WIth strategyUpdate: OnDelete policy usage it affect controllers by infinite loop for pods create by old generation of StatefulSet.

2024-07-01T09:58:40Z DEBUG events Waiting for number of running pods to match expected: 0 != 1 {"type": "Normal", "object": {"kind":"Database","namespace":"ydb-dev","name":"example-1","uid":"41243125-668b-4706-994d-6d5092f8df8f","apiVersion":"ydb.tech/v1alpha1","resourceVersion":"83370878"}, "reason": "Provisioning"}

What is the new behavior?

Other information