-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 admission webhook gives error "Deployment.apps not found" when deployment should exist #5973
Comments
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. |
This issue is still occurring frequently. I have reached out in the keda slack channel here and got the following response from @wozniakjan
|
today is a community bi-weekly call, I will add it to the agenda and I have a sense that this will have a good chance to be resolved soon. You are welcome to attend as well :) |
Sounds great, I appreciate it. I will be there 👍 |
the consensus is that we will add a feature flag to KEDA webhook deployment to configure whether it will use the cached client (default) or the direct client. |
Report
We are installing a helm chart that contains a keda scaled object, along with the rest of the manifests like deployment, service, etc. Every once in awhile (maybe 1/10 installs), we are seeing the admission webhook fail the scaled object creation due to the deployment not being found.
This seems like it shouldn't occur since custom resources as part of a helm chart are the last resource installed. Meaning the deployment should always be created before the scaled object.
When I check in the cluster, the deployment is successfully created with the correct name, so I am not sure why the admission webhook would fail with this error.
Expected Behavior
The admission webhook should not fail with the above error when the scaled object is created right after the deployment in a helm release.
Actual Behavior
Checking the kubernetes audit logs, I see that the deployment is correctly created before the scaled object. I am not sure why the admission webhook would not be able to find it then. Perhaps there is some race condition here?
Timeline of a helm release that failed:
Timeline of a helm release that passed:
Steps to Reproduce the Problem
admission webhook "vscaledobject.kb.io" denied the request: Deployment.apps "istio-ingressgateway" not found
KEDA Version
2.13.1
Kubernetes Version
1.28
Platform
AWS and GCP
The text was updated successfully, but these errors were encountered: