FoundationDB / fdb-kubernetes-operator

A kubernetes operator for FoundationDB
Apache License 2.0
241 stars 82 forks source link

Don't reset the last reconciled generation #2073

Closed johscheuer closed 3 months ago

johscheuer commented 3 months ago

Description

Fixes: https://github.com/FoundationDB/fdb-kubernetes-operator/issues/873

Type of change

Please select one of the options below.

Discussion

Before that we would reset the generation to 0 which can be confusing in many cases when the reconciliation drops from a precious number to 0.

Testing

Ran unit tests and an e2e test suite.

Documentation

Not needed.

Follow-up

-

foundationdb-ci commented 3 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

foundationdb-ci commented 3 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

johscheuer commented 3 months ago

Changes look good to me though it feels like it should not close the linked issue as it does not add the observedGenerations nor Conditions. If this is intentional, an explanation on the issue would be good

For the conditions we have a dedicated issue: https://github.com/FoundationDB/fdb-kubernetes-operator/issues/1000. Adding the observedGeneration didn't seem to bring a huge value in this context.