cockroachdb / cockroachdb/cockroach-operator

[3/24 bug bash] kubectl describe CrdbCluster <cluster name> output provided incorrect CRDB version

Aperta
#388 4 commenti 0 reazioni 1 assegnatario Assegnata a @keith-mcclellan Vedi su GitHub
bug
Lingua principale
Go
Stelle
318
Fork
104
Merge medio
1g 6h
PR unite (30g)
1

Descrizione

When attempting to skip CockroachDB version in upgrading (19.2.x -> 20.2.x), the upgrade successfully did not go through, but the kubectl describe output incorrectly communicated that it successfully upgraded.

**Repro Steps:**
1. Install CockroachDB 19.2.x with the Operator having customized the defaults
2. Attempt to Upgrade to CockroachDB 20.2.x (expected fail because of skip)

**Expected Results**

- Cluster remains on 19.2.x
- when running kubectl describe CrdbCluster cockroachdb, I expect it to return 19.2.x

**Actual Results:**
`kubectl describe CrdbCluster cockroachdb incorrectly states cluster is on 20.2.5:`

> Johns-MacBook-Pro:~ johnkendall$ kubectl describe CrdbCluster cockroachdb
> Name: cockroachdb
> Namespace: default
> Labels:
> Annotations: crdb.io/containerimage: cockroachdb/cockroach:v20.2.5
> crdb.io/version: v20.2.5
> API Version: crdb.cockroachlabs.com/v1alpha1
> Kind: CrdbCluster
> Metadata:

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.