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

Keda operator gives error "Webhook not found. Unable to update certificate." after disabling admission webhook #5963

Closed
sinanub18 opened this issue Jul 15, 2024 · 3 comments
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity

Comments

@sinanub18
Copy link

sinanub18 commented Jul 15, 2024

Report

We deployed keda 2.13.0 after disabling admission webhook but we are constantly getting below error of unable to update certificate. Is disabling admission webhook disbales cert updation / rotation for metric server and keda-operator as well??

Expected Behavior

Keda operator should able to rotate / update certificate for keda-operator, keda-metricserver and ignore webhook service.

Actual Behavior

keda-operator throwing error "Webhook not found. Unable to update certificate."

Steps to Reproduce the Problem

  1. Disable admission webhook
  2. Deploy keda operator and keda-metric service with keda managed cert

Logs from KEDA operator

{"level":"error","ts":"2024-07-15T08:03:38Z","logger":"cert-rotation","msg":"Webhook not found. Unable to update certificate.","name":"keda-admission","gvk":"admissionregistration.k8s.io/v1, Kind=ValidatingWebhookConfiguration","error":"ValidatingWebhookConfiguration.admissionregistration.k8s.io \"keda-admission\" not found","stacktrace":"github.com/open-policy-agent/cert-controller/pkg/rotator.(*ReconcileWH).ensureCerts\n\t/workspace/vendor/github.com/open-policy-agent/cert-controller/pkg/rotator/rotator.go:816\ngithub.com/open-policy-agent/cert-controller/pkg/rotator.(*ReconcileWH).Reconcile\n\t/workspace/vendor/github.com/open-policy-agent/cert-controller/pkg/rotator/rotator.go:785\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}

KEDA Version

2.13.0

Kubernetes Version

None

Platform

None

Scaler Details

No response

Anything else?

No response

@sinanub18 sinanub18 added the bug Something isn't working label Jul 15, 2024
Copy link

stale bot commented Sep 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Sep 18, 2024
Copy link

stale bot commented Oct 6, 2024

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Oct 6, 2024
@lzianekhodja-aneo
Copy link

lzianekhodja-aneo commented Oct 29, 2024

Hello,
We have exactly the same configurations and error with Keda version 2.15.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants