Skip to content

Commit 4c04fec

Browse files
authored
Merge pull request #538 from johscheuer/add-version-to-status
Add version to status output
2 parents 3cf8536 + 08d00a4 commit 4c04fec

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

api/v1beta1/foundationdbcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import (
3838
// +kubebuilder:printcolumn:name="Generation",type="integer",JSONPath=".metadata.generation",description="Latest generation of the spec",priority=0
3939
// +kubebuilder:printcolumn:name="Reconciled",type="integer",JSONPath=".status.generations.reconciled",description="Last reconciled generation of the spec",priority=0
4040
// +kubebuilder:printcolumn:name="Healthy",type="boolean",JSONPath=".status.health.healthy",description="Database health",priority=0
41+
// +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".status.runningVersion",description="Running version",priority=0
4142

4243
// FoundationDBCluster is the Schema for the foundationdbclusters API
4344
type FoundationDBCluster struct {

config/crd/bases/apps.foundationdb.org_foundationdbclusters.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spec:
2121
description: Database health
2222
name: Healthy
2323
type: boolean
24+
- JSONPath: .status.runningVersion
25+
description: Running version
26+
name: Version
27+
type: string
2428
group: apps.foundationdb.org
2529
names:
2630
kind: FoundationDBCluster

0 commit comments

Comments
 (0)