From 97d46591d48de56ee71a57fa407f30b9e8810705 Mon Sep 17 00:00:00 2001 From: Paolo Patierno Date: Thu, 11 Apr 2024 08:39:40 +0200 Subject: [PATCH] Added Stopped column to the KafkaRebalance custom resource (#9944) Signed-off-by: Paolo Patierno --- .../strimzi/api/kafka/model/rebalance/KafkaRebalance.java | 7 ++++++- .../crds/049-Crd-kafkarebalance.yaml | 4 ++++ .../install/cluster-operator/049-Crd-kafkarebalance.yaml | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/io/strimzi/api/kafka/model/rebalance/KafkaRebalance.java b/api/src/main/java/io/strimzi/api/kafka/model/rebalance/KafkaRebalance.java index b396f5e7e02..db3486830d3 100644 --- a/api/src/main/java/io/strimzi/api/kafka/model/rebalance/KafkaRebalance.java +++ b/api/src/main/java/io/strimzi/api/kafka/model/rebalance/KafkaRebalance.java @@ -74,7 +74,12 @@ name = "NotReady", description = "There is an error on the custom resource", jsonPath = ".status.conditions[?(@.type==\"NotReady\")].status", - type = "string") + type = "string"), + @Crd.Spec.AdditionalPrinterColumn( + name = "Stopped", + description = "Processing the proposal or running rebalancing was stopped", + jsonPath = ".status.conditions[?(@.type==\"Stopped\")].status", + type = "string") } ) ) diff --git a/packaging/helm-charts/helm3/strimzi-kafka-operator/crds/049-Crd-kafkarebalance.yaml b/packaging/helm-charts/helm3/strimzi-kafka-operator/crds/049-Crd-kafkarebalance.yaml index 60ef0fb64e3..aefb1c360b5 100644 --- a/packaging/helm-charts/helm3/strimzi-kafka-operator/crds/049-Crd-kafkarebalance.yaml +++ b/packaging/helm-charts/helm3/strimzi-kafka-operator/crds/049-Crd-kafkarebalance.yaml @@ -51,6 +51,10 @@ spec: description: There is an error on the custom resource jsonPath: ".status.conditions[?(@.type==\"NotReady\")].status" type: string + - name: Stopped + description: Processing the proposal or running rebalancing was stopped + jsonPath: ".status.conditions[?(@.type==\"Stopped\")].status" + type: string schema: openAPIV3Schema: type: object diff --git a/packaging/install/cluster-operator/049-Crd-kafkarebalance.yaml b/packaging/install/cluster-operator/049-Crd-kafkarebalance.yaml index 06f24bdcba5..7693eef1cd1 100644 --- a/packaging/install/cluster-operator/049-Crd-kafkarebalance.yaml +++ b/packaging/install/cluster-operator/049-Crd-kafkarebalance.yaml @@ -50,6 +50,10 @@ spec: description: There is an error on the custom resource jsonPath: ".status.conditions[?(@.type==\"NotReady\")].status" type: string + - name: Stopped + description: Processing the proposal or running rebalancing was stopped + jsonPath: ".status.conditions[?(@.type==\"Stopped\")].status" + type: string schema: openAPIV3Schema: type: object