diff --git a/api/v1alpha1/dragonfly_types.go b/api/v1alpha1/dragonfly_types.go index d19b36c..742bb18 100644 --- a/api/v1alpha1/dragonfly_types.go +++ b/api/v1alpha1/dragonfly_types.go @@ -211,6 +211,9 @@ type DragonflyStatus struct { //+kubebuilder:object:root=true //+kubebuilder:subresource:status +//+kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase",description="The current phase of the Dragonfly cluster" +//+kubebuilder:printcolumn:name="Rolling Update",type="boolean",JSONPath=".status.isRollingUpdate",description="Indicates if a rolling update is in progress" +//+kubebuilder:printcolumn:name="Replicas",type="integer",JSONPath=".spec.replicas",description="Number of replicas" // Dragonfly is the Schema for the dragonflies API type Dragonfly struct { diff --git a/config/crd/bases/dragonflydb.io_dragonflies.yaml b/config/crd/bases/dragonflydb.io_dragonflies.yaml index fcc5328..f917eaa 100644 --- a/config/crd/bases/dragonflydb.io_dragonflies.yaml +++ b/config/crd/bases/dragonflydb.io_dragonflies.yaml @@ -14,7 +14,20 @@ spec: singular: dragonfly scope: Namespaced versions: - - name: v1alpha1 + - additionalPrinterColumns: + - description: The current phase of the Dragonfly cluster + jsonPath: .status.phase + name: Phase + type: string + - description: Indicates if a rolling update is in progress + jsonPath: .status.isRollingUpdate + name: Rolling Update + type: boolean + - description: Number of replicas + jsonPath: .spec.replicas + name: Replicas + type: integer + name: v1alpha1 schema: openAPIV3Schema: description: Dragonfly is the Schema for the dragonflies API