Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
58
stars
19
forks
source link
Bug: Operator panicking out as the `decoder` is not set #338
After the slice is all set between worker clusters when trying to create an application deployment (Eg. iperf app), there is a webhook error:
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "webhook.kubeslice.io": Post "[https://kubeslice-webhook-service.kubeslice-system.svc:443/mutate-webhook?timeout=10s](https://kubeslice-webhook-service.kubeslice-system.svc/mutate-webhook?timeout=10s)": EOF
Upon debugging, we've found that this is caused by the same sigs.k8s.io/controller-runtime's version update as explained in #335, but for a different injection method: InjectDecoder.
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "webhook.kubeslice.io": Post "[https://kubeslice-webhook-service.kubeslice-system.svc:443/mutate-webhook?timeout=10s](https://kubeslice-webhook-service.kubeslice-system.svc/mutate-webhook?timeout=10s)": EOF
Check for the kubeslice-operator deployment's logs. There should be a nil pointer deference (attached the logs below).
π Expected behavior
It shouldn't throw a nil pointer dereference error. And allow creation of resources (like deployment) in the associated namespace.
π Actual Behavior
It throws a nil pointer dereference error. And doesn't allow the creation of resources (like deployment) in the associated namespace.
π Description
After the slice is all set between worker clusters when trying to create an application deployment (Eg. iperf app), there is a webhook error:
Upon debugging, we've found that this is caused by the same
sigs.k8s.io/controller-runtime
's version update as explained in #335, but for a different injection method:InjectDecoder
.CC: @soharab-ic
π Reproduction steps
kubectl apply...
:π Expected behavior
It shouldn't throw a nil pointer dereference error. And allow creation of resources (like deployment) in the associated namespace.
π Actual Behavior
It throws a nil pointer dereference error. And doesn't allow the creation of resources (like deployment) in the associated namespace.
π Relevant log output
Version
Latest master. Commit:
b307957037d7e589e27fc820a8bc310e625e0e00
π₯οΈ What operating system are you seeing the problem on?
Linux
β Proposed Solution
Set the
decoder
field in themain
package itself, while initializingWebhookServer
.π Have you spent some time to check if this issue has been raised before?
Code of Conduct