Closed kirillmakhonin-brt closed 10 months ago
Hi, Spec isn't a pointer, so that's no it. However, srcPod may be nil. I'll have a look.
I figured it out. This is because the webhook is reinvocated in your setup, since #193, so this code path is run: https://github.com/admiraltyio/admiralty/blob/93761fdd7c1000fd511c63ec315adf94ad746fa0/pkg/webhooks/proxypod/proxypod.go#L62 Deserialization should be done into an initialized object. Unfortunately, trying to deserialize into nil doesn't produce an error.
Hello We've tried to use annotations
proxy-pod-scheduling-constraints
/use-constraints-from-spec-for-proxy-pod-scheduling
on the latest version and 've recevied this errorWe suspect that issue is in the code that tries to access
srcPod.Spec
asSpec
may be empty in corner cases