nirnanaaa / kube-readiness

Controller to ensure external readiness conditions on pods (currently AWS ALB only)
2 stars 1 forks source link

build up endpoint / service / ingress map event driven #7

Open nirnanaaa opened 5 years ago

nirnanaaa commented 5 years ago

So we want to move away from only fetching endpoints when the ingress is updated. We want to have the IngressSet changed every time an Endpoint, Ingress updates.

Luckily google can guide us here as well: https://github.com/kubernetes/ingress-gce/blob/master/pkg/neg/controller.go#L474

nirnanaaa commented 5 years ago

also we have to keep in mind that we have to add a mutex to the ingress set to ensure no concurrent read/writes.

nirnanaaa commented 5 years ago

controller