kudobuilder / kudo

Kubernetes Universal Declarative Operator (KUDO)
https://kudo.dev
Apache License 2.0
1.18k stars 103 forks source link

apiextensions.k8s.io/v1 not available until Kubernetes 1.16.0. #1577

Closed adamgoose closed 4 years ago

adamgoose commented 4 years ago

What happened:

When trying to run kubectl kudo init -v4 on Kubernetes 1.15.11, I get the following logs:

...
Try to retrieve cert-manager CRD certificates.cert-manager.io
Try to retrieve cert-manager CRD certificates.certmanager.k8s.io
Errors                                                                 
failed to detect any valid cert-manager CRDs. Make sure cert-manager is installed.
Error: failed to verify installation requirements

This is caused here because apiextensions.k8s.io/v1 isn't available until Kubernetes 1.16.0.

What you expected to happen:

w00p w00p it init'd properly!

How to reproduce it (as minimally and precisely as possible):

Run kubectl kudo init against a 1.15 cluster.

Environment:

adamgoose commented 4 years ago

I suspect this leads to an even greater level of incompatibility with < 1.16.0, since Kudo utilizes CRDs heavily. While your docs say 1.13+ is supported, I'm either not convinced or missing something.

adamgoose commented 4 years ago

I think this is related to #1126

zmalik commented 4 years ago

thanks, @adamgoose for creating the issue this was reported in slack also https://kubernetes.slack.com/archives/CG3HTFCMV/p1591871155415200

we should update the docs to +1.16.0 as now we use ApiextensionsV1 to detect cert-manager CRDs https://github.com/kudobuilder/kudo/blob/main/pkg/kudoctl/kudoinit/prereq/webhook.go#L182

adamgoose commented 4 years ago

After further inspection, the web hook prereq is the only place v1 is used in the whole repo. I pulled the repo, checked out 0.14.0, and swapped two instances of v1 to v1beta1, and everything has been working fine.

On Jul 7, 2020 at 3:45 AM, <Zain Malik (mailto:notifications@github.com)> wrote:

thanks, @adamgoose (https://github.com/adamgoose) for creating the issue this was reported in slack also https://kubernetes.slack.com/archives/CG3HTFCMV/p1591871155415200

we should update the docs to +1.16.0 as now we use ApiextensionsV1 to detect cert-manager CRDs https://github.com/kudobuilder/kudo/blob/main/pkg/kudoctl/kudoinit/prereq/webhook.go#L182

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/kudobuilder/kudo/issues/1577#issuecomment-654697758), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAEVF7HKL3ZDWGYAMV3N7GLR2LOD7ANCNFSM4OR6H7HA).