cockroachdb / cockroach-operator

k8s operator for CRDB
Apache License 2.0
286 stars 95 forks source link

Operator stopped working after upgrading from to 2.7.0 to 2.10.0 #978

Closed guitcastro closed 1 year ago

guitcastro commented 1 year ago

I've update my k8s cluster to 1.25 and the operator stopped worked because the removal of deprecated APIS. I checked out and update to version 2.10.0 which support k8s 1.25.

However after the update the operator is not working anymore it does not find the CRD:

{"level":"info","ts":1682440914.201659,"logger":"controller.CrdbCluster","msg":"reconciling CockroachDB cluster","CrdbCluster":"ledger/ledger-database","ReconcileId":"AKGDdCUwzzhgXqBJbU7jZi"}

The cluster resource does exists:

kubectl get CrdbCluster ledger-database -n ledger                                                         
NAME              AGE
ledger-database   56m

I double checked and the cockroach-operator-sa does have the cockroach-operator-role binding which has permission to crdbclusters