cockroachdb / cockroachdb/cockroach-operator

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

Open
#388 4 comments 0 reactions 1 assignee Assigned to @keith-mcclellan View on GitHub
bug
Dominant language
Go
Stars
318
Forks
104
Avg merge
1d 6h
Merged PRs (30d)
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:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.