API conversion tool not working properly #6325
Replies: 3 comments 3 replies
-
The step 4 suggests that you do not have th CRDs from 0.22.1 installed. If you would, it would show that you have versions |
Beta Was this translation helpful? Give feedback.
-
Thanks for you quick reply, but isn't that the point of the api conversion tool: convert-resource:
crd-upgrade:
And like I wrote, I can't replace or apply the CRDs manually, too:
As far as I understand this is the recommended way in the official documentation:
I followed the second way. Or did I do something wrong? Or more specifically what is the recommended way to update the CRDs? Thanks again for your help in advance. |
Beta Was this translation helpful? Give feedback.
-
Thanks again for your quick reply, but sadly I'm still lost here. If I run the convert-resource in debug mode it even tells me, that the api version was changed to kafka.strimzi.io/v1beta2, but in reality this didn't happen:
Anyways I installed the CRDs from release 0.22.1 as you said and then tried to run the convert-resource and crd-upgrade scripts again. But nothing changed and I'm getting the same errors as before, which makes sense to me, because all CRDs from release 0.22.1 only contain v1beta1 versions. Therefore I'm not able run the scripts and adjust the api versions properly. And I think this is the main problem here. This is why I also tried installing the CRDs from release 0.27.1 in the first place. The problem for most of the 0.27.1 CRDs is, that they only contain the v1beta2 versions. Therefore I'm not able to replace the CRDs. Some 0.27.1 CRDs contain all api versions (v1alpha1, v1beta1 and v1beta2). This is for example the case for the kafkatopics CRD. In this case I was able to replace the CRD and run the convert-resource and crd-upgrade scripts successfully. This is why I'm a bit lost here, because I don't know how I should proceed with the update, without deleting all relevant CRDs and installing them new, which isn't a good solution for me. Is there a possibility that the other CRDs will get adjusted, so that they contain all api versions like the kafkatopics CRD? Or is there something else I could try? Thanks again for your help in advance! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
API conversion tool not working properly: custom resources and CRDs are not getting converted. Therefore I'm not able to update strimzi and kafka to 0.27.1 and 3.1.
To Reproduce
Steps to reproduce the behavior:
strimzi logs:
Expected behavior
the custom resources and CRDs should be converted properly.
Environment (please complete the following information):
Additional Information:
Trying to replace the CRD with the CRD from 0.27.1 (https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/0.27.1/helm-charts/helm3/strimzi-kafka-operator/crds/040-Crd-kafka.yaml) also fails, since v1beta1 doesn't appear in the spec.versions:
You can find my currently installed kafkas.kafka.strimzi.io CRD in the appendix.
kafkas.kafka.strimzi.io.txt
Thanks for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions