Migration to GenericKafkaListener failed if strimzi-operator was upgraded from 0.19.0=>0.20.1 (crd folder move)
See original GitHub issueDescribe the bug Migration to GenericKafkaListener failed if strimzi-operator was upgraded from 0.19.0=>0.20.1=>0.21.1
Error: UPGRADE FAILED: release kafka-test failed, and has been rolled back due to atomic being set: cannot patch "test" with kind Kafka: Kafka.kafka.strimzi.io "test" is invalid: spec.kafka.listeners: Invalid value: "array": spec.kafka.listeners in body must be of type object: "array"
script returned exit code 1
To Reproduce Steps to reproduce the behavior:
- install strimzi 0.19.0
- upgrade to 0.20.1, than 0.21.1 using hotfix script from https://github.com/strimzi/strimzi-kafka-operator/issues/3877#issuecomment-832750622
- try to switch to GenericKafkaListener listeners format
- See error
Error: UPGRADE FAILED: release kafka-test failed, and has been rolled back due to atomic being set: cannot patch "test" with kind Kafka: Kafka.kafka.strimzi.io "test" is invalid: spec.kafka.listeners: Invalid value: "array": spec.kafka.listeners in body must be of type object: "array"
Expected behavior Kafka should switched to GenericKafkaListener listeners format (array)
Environment (please complete the following information):
- Strimzi version: [0.21.1]
- Installation method: [Helm chart]
- Kubernetes cluster: [1.20]
- Infrastructure: [AKS]
Additional context I see your comment https://github.com/strimzi/strimzi-kafka-operator/issues/3727#issuecomment-704386494. But unfortunately I have no idea how to apply crd from 0.21.1 release now. Have no idea why helm did’t do this. By the way fresh install from 0.21.1 release works as expected.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve applied them manually via next snippet but got same error:
Thanks.