Skip to content

Fix Kafka setup by ensuring Strimzi CRDs are established before applying resources#6602

Closed
anandyadav3559 wants to merge 1 commit intoapache:mainfrom
anandyadav3559:fix/kafka-setup
Closed

Fix Kafka setup by ensuring Strimzi CRDs are established before applying resources#6602
anandyadav3559 wants to merge 1 commit intoapache:mainfrom
anandyadav3559:fix/kafka-setup

Conversation

@anandyadav3559
Copy link
Copy Markdown
Contributor

@anandyadav3559 anandyadav3559 commented May 4, 2026

fixes: #6596

The Kafka setup fails with errors like:

"no matches for kind KafkaNodePool in version kafka.strimzi.io/v1beta2"

Although Strimzi CRDs are installed, they are not fully established when Kafka resources are applied. This creates a race condition where Kubernetes does not yet recognize the resource types.

This PR adds explicit waits to ensure CRDs are established before applying Kafka resources.

Additionally, KEDA installation is updated to use server-side apply to avoid annotation size issues.

… Kafka resources

Kafka setup fails with errors like 'no matches for kind KafkaNodePool'
because Strimzi CRDs are not fully established when Kafka resources are applied.

Added explicit waits for CRDs and operator readiness to prevent race condition.

Also updated KEDA installation to use server-side apply to avoid annotation size issues.
Copy link
Copy Markdown
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the root cause analysis and the attempt to fix. We need also to update the duck type which we use internally: https://github.com/apache/camel-k/tree/main/pkg/apis/duck/strimzi/v1beta2

@anandyadav3559
Copy link
Copy Markdown
Contributor Author

I'll see to it and update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kafka test broken

2 participants