@@ -147,6 +147,10 @@ type KeeperClusterStatus struct {
147147 // ObservedGeneration indicates latest generation observed by controller.
148148 // +operator-sdk:csv:customresourcedefinitions:type=status
149149 ObservedGeneration int64 `json:"observedGeneration,omitempty"`
150+ // Version indicates the version reported by the container image.
151+ // +optional
152+ // +operator-sdk:csv:customresourcedefinitions:type=status
153+ Version string `json:"version,omitempty"`
150154}
151155
152156// KeeperCluster is the Schema for the `keeperclusters` API.
@@ -157,6 +161,7 @@ type KeeperClusterStatus struct {
157161// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message"
158162// +kubebuilder:printcolumn:name="ReadyReplicas",type="number",JSONPath=".status.readyReplicas"
159163// +kubebuilder:printcolumn:name="Replicas",type="number",JSONPath=".spec.replicas"
164+ // +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".status.version"
160165// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
161166// +operator-sdk:csv:customresourcedefinitions:resources={{Pod,v1}}
162167// +operator-sdk:csv:customresourcedefinitions:resources={{PersistentVolumeClaim,v1}}
0 commit comments