Closed irvinlim closed 2 years ago
EDIT: Actually, it seems that the particular HTTP handler goroutine will crash and return EOF, rather than crashing the whole service:
Error from server (InternalError): error when creating "job-signal-demo.yaml": Internal error occurred: failed calling webhook "mutating.webhook.jobs.execution.furiko.io": failed to call webhook: Post "https://execution-webhook-service.furiko-system.svc:443/mutating/jobs.execution.furiko.io?timeout=10s": EOF
Rather than let kube-apiserver return an EOF error, we could recover from such panics, and ALWAYS return an InternalError to fail validation/mutation.
Encountered panic in nil pointer exception: