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

migrate CRDs #152

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kalvkusk
Copy link

@kalvkusk kalvkusk commented Sep 8, 2023

Works with:
* Kubernetes v1 apiextensions
* Latest cert-manager.io

@CLAassistant
Copy link

CLAassistant commented Sep 8, 2023

CLA assistant check
All committers have signed the CLA.

@kalvkusk
Copy link
Author

kalvkusk commented Sep 8, 2023

Installation is working, still getting these error when trying to apply a policy:

Error from server (InternalError): error when creating "examples/example_policy.yaml": Internal error occurred: failed calling webhook "malertspolicy.kb.io": received invalid webhook response: expected response.uid="bcfa00c3-7731-4fa6-9540-9b088da9c956", got ""
{"level":"error","ts":1694168214.9626572,"logger":"controller-runtime.webhook.webhooks","msg":"unable to decode the request","webhook":"/mutate-nr-k8s-newrelic-com-v1-alertspolicy","error":"no kind \"AdmissionReview\" is registered for version \"admission.k8s.io/v1\" in scheme \"pkg/runtime/scheme.go:101\"","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/runner/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).ServeHTTP\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/admission/http.go:79\nsigs.k8s.io/controller-runtime/pkg/webhook.instrumentedHook.func1\n\t/home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/server.go:129\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.15.13/x64/src/net/http/server.go:2042\nnet/http.(*ServeMux).ServeHTTP\n\t/opt/hostedtoolcache/go/1.15.13/x64/src/net/http/server.go:2417\nnet/http.serverHandler.ServeHTTP\n\t/opt/hostedtoolcache/go/1.15.13/x64/src/net/http/server.go:2843\nnet/http.(*conn).serve\n\t/opt/hostedtoolcache/go/1.15.13/x64/src/net/http/server.go:1925"}

Looking into that

@kalvkusk
Copy link
Author

kalvkusk commented Sep 8, 2023

Fixed admission hooks.
Tested on AWS EKS
Kubernetes version 1.23

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.

2 participants