Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: unable to recognize "kudo.yaml": no matches for kind "MutatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1beta1" #1804

Open
suikast42 opened this issue Oct 18, 2021 · 5 comments · May be fixed by #1811
Labels

Comments

@suikast42
Copy link

What happened:
The suggested init brings the error "error: unable to recognize "kudo.yaml": no matches for kind "MutatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1beta1"

How to reproduce it (as minimally and precisely as possible):
$ kubectl kudo init --dry-run -o=yaml > kudo.yaml
$ kubectl apply -f kudo.yaml

Anything else we need to know?:
I look at extensible-admission-controllers and replace line 531 of the kudo.yaml with apiVersion: admissionregistration.k8s.io/v1
and add admissionReviewVersions: ["v1", "v1beta1"] to client config of that resource. After that I see no issues if I apply the kudo.yaml

Environment:

  • Kubernetes version (use kubectl version):v1.22.2+k3s2"
  • Kudo version (use kubectl kudo version): 0.19.0
  • Operator:
  • operatorVersion:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@suikast42
Copy link
Author

suikast42 commented Oct 22, 2021

I do a downgrade to kubernetes version 1.21.5 and see the warning . But the issue is gone
Warning: admissionregistration.k8s.io/v1beta1 MutatingWebhookConfiguration is deprecated in v1.16+, unavailable in v1.22+; use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration

I assume there is some stuff in kudo code that relies on the beata version.

@dboyleitrs
Copy link

We are running into the same issue now. KUDO v0.19.0 will not init on a Kubernetes cluster running v1.22+.

Just wondering if there will be future releases of KUDO to address this?

@suikast42
Copy link
Author

We are running into the same issue now. KUDO v0.19.0 will not init on a Kubernetes cluster running v1.22+.

I try to build kudo from source but I failed with this. There is no entrypoint which explains build from source. The reason why it's not working with 1.22+ ist hat the api admissionregistration.k8s.io/v1beta1 is removed from kubernetes. You have to use admissionregistration.k8s.io/v1. Accorrding to k8s it should not be hard to migrate

@dove-young
Copy link

this is related to #1807 . you might need to change admission version to v1

@dbarentine
Copy link

It's a known issue. There are two K8s apis (if I remembered correctly) where v1beta1 was deprecated and now removed in 1.22. I've been working on the required changes plus some other dependency updates here: https://github.com/oneidentity/kudo/tree/feature/go118_dependency_update

It's mostly done. That branch builds locally and can deploy into 1.22+ clusters.

There are a couple of related but older PRs from @kensipe here:
#1799
#1805
#1806

My hope is to finish it up this week and have a possible PR that would encapsulate all the work in those other three PRs, some additional dependency updates, and all the test fixes that come with that.

But as I'm not a core committer, I'm not sure what the status will be with getting it merged and a new release. For our own purposes we may end up building it ourselves and running our built version until it's resolved in the core project.

@dbarentine dbarentine linked a pull request Jun 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants