pkg/endpoint: Pass endpoint alive context to regeneration tasks
pkg/endpoint: Pass endpoint alive context to regeneration tasks

A per endpoint controller is started when an endpoint is being created,
or restored. The controller triggers regeneration process for the endpoint
that's tasked with attaching BPF programs to the endpoint device. When an
endpoint is deleted, the regeneration task is expected to fail to attach
BPF programs as the endpoint devices are cleaned up. In order to differentiate
such expected cases from the failure ones, the code checks if the endpoint
is alive via a context that's cancelled when the endpoint is deleted.
However, the right context wasn't passed down to the regeneration
routines via the controller. As a result, the regeneration task would
flag an error in the expected scenarios.

Fix it by calling the right function that populates the per endpoint
alive context.

Fixes: https://github.com/cilium/cilium/issues/18073

Signed-off-by: Aditi Ghag <436242e0c0af36e461a395c937165372864a99f9@cilium.io>
Signed-off-by: Joe Stringer <16a9a54ddf4259952e3c118c763138e83693d7fd@cilium.io>

michi-covalent/cilium,cilium/cilium,michi-covalent/cilium,michi-covalent/cilium,cilium/cilium,cilium/cilium,cilium/cilium,michi-covalent/cilium,michi-covalent/cilium,cilium/cilium