cockroachdb / cockroachdb/cockroach-operator

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

Ouverte
#388 4 commentaires 0 réactions 1 personne assignée Assignée à @keith-mcclellan Voir sur GitHub
bug
Langage dominant
Go
Étoiles
318
Forks
104
Merge moyen
1 j 6 h
PR mergées (30 j)
1

Description

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:

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.