-
Notifications
You must be signed in to change notification settings - Fork 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
Uninstall Volcano Doesn't Clean ValidateWebhook Configuration And MutatingWebhook Configuration #2102
Comments
I think it is useful |
It is not feasible to use the ownerrefernce, https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/owners-dependents/ $ kubectl get events -A --field-selector=reason=OwnerRefInvalidNamespace
NAMESPACE LAST SEEN TYPE REASON OBJECT MESSAGE
default 5m22s Warning OwnerRefInvalidNamespace mutatingwebhookconfiguration/volcano-admission-service-jobs-mutate ownerRef [apps/v1/Deployment, namespace: , name: volcano-admission, uid: 0d14f232-61dc-40d2-a5f4-a24150e76f25] does not exist in namespace ""
default 5m22s Warning OwnerRefInvalidNamespace mutatingwebhookconfiguration/volcano-admission-service-podgroups-mutate ownerRef [apps/v1/Deployment, namespace: , name: volcano-admission, uid: 0d14f232-61dc-40d2-a5f4-a24150e76f25] does not exist in namespace ""
default 5m22s Warning OwnerRefInvalidNamespace mutatingwebhookconfiguration/volcano-admission-service-pods-mutate ownerRef [apps/v1/Deployment, namespace: , name: volcano-admission, uid: 0d14f232-61dc-40d2-a5f4-a24150e76f25] does not exist in namespace ""
default 5m22s Warning OwnerRefInvalidNamespace mutatingwebhookconfiguration/volcano-admission-service-queues-mutate ownerRef [apps/v1/Deployment, namespace: , name: volcano-admission, uid: 0d14f232-61dc-40d2-a5f4-a24150e76f25] does not exist in namespace ""
@Thor-wl Do you have any suggestions? |
Supplyment: |
similar issue: #2079 |
Is it possible adding some placeholder in volcano-development.yaml to help delete related resources? Then users can cleanup them using Otherwise we probably want to add a |
i think the we should fix the webhook code here first. volcano/cmd/webhook-manager/app/util.go Line 65 in 183a178
volcano/cmd/webhook-manager/app/util.go Line 81 in 183a178
And volcano/cmd/webhook-manager/app/util.go Line 51 in 183a178
This two place generate different config name prefix when user uses url webhook or uses serivice webhook..And i think it's no need. we can use the default webhook name like "webhook" if user not specify, add an variable WebhookServiceName to distinguish the WebhookName, then we can put those 8 webhooks in the yaml then we can deal with this problem. BTW, I try to use finalizers to deal with problem ,but it looks more complex ..... |
Signed-off-by: maybaby <ybyang7@iflytek.com>
Signed-off-by: maybaby <ybyang7@iflytek.com>
Signed-off-by: maybaby <ybyang7@iflytek.com>
I think webhook should not be generated by code, webhook should be defined by yaml. |
Could you give some suggestion or inputs in here? @Thor-wl |
fix in #2346 /assign |
#2346 is merged. |
@hwdef: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
How to reproduce it (as minimally and precisely as possible):
step1:
kubectlcreate -f https://raw.githubusercontent.com/volcano-sh/volcano/v1.5.1/installer/volcano-development.yaml
step2:
kubectl delete -f https://raw.githubusercontent.com/volcano-sh/volcano/v1.5.1/installer/volcano-development.yaml
The Webhook Configuration is not Cleaned because they are not in the yaml.
And the remained configuration will cause the cluster podCreateFailed beacuse of no pod validate endpoint , this is a little problem but not easy to find.
Suggesstion:
Clean them by using ownerrefernce or labels mechanism
The text was updated successfully, but these errors were encountered: