From 2cd41b411f94752bc8c3e44a01fcb9e076caa142 Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Tue, 13 Oct 2026 05:52:56 +0300 Subject: [PATCH] fix(backups): read the Strimzi Kafka CR through the v1 API Strimzi 1.x no longer serves kafka.strimzi.io/v1beta2, so the Kafka backup driver's readiness check would fail on every backup and restore. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin --- internal/backupcontroller/kafkatypes/types.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/internal/backupcontroller/kafkatypes/types.go b/internal/backupcontroller/kafkatypes/types.go index 9a7e36267..ad9f84633 100644 --- a/internal/backupcontroller/kafkatypes/types.go +++ b/internal/backupcontroller/kafkatypes/types.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 -// Package kafkatypes declares the minimum subset of the kafka.strimzi.io/v1beta2 +// Package kafkatypes declares the minimum subset of the kafka.strimzi.io/v1 // Kafka cluster CR the backupstrategy controller reads: the Ready condition, // used only as a readiness precondition before the Kafka metadata backup/restore // Job runs. Modelled as a partial (no spec) so we avoid pulling the full Strimzi @@ -8,7 +8,7 @@ // The driver never writes this CR. // // +groupName=kafka.strimzi.io -// +versionName=v1beta2 +// +versionName=v1 // +kubebuilder:object:generate=true package kafkatypes @@ -20,12 +20,11 @@ import ( const ( GroupName = "kafka.strimzi.io" - Version = "v1beta2" + Version = "v1" // ConditionTypeReady is the Strimzi cluster-operator condition that turns - // True once the Kafka cluster (brokers, and in ZooKeeper mode ZooKeeper) is - // up and serving. The Admin API the backup Job talks to is only reachable - // then. + // True once the Kafka cluster is up and serving. The Admin API the backup + // Job talks to is only reachable then. ConditionTypeReady = "Ready" )