digitalocean / k8s-staticroute-operator

Create static routes for your k8s nodes using CRDs.
49 stars 10 forks source link

Cross CRDs checks for static routes overlapping #13

Open v-ctiutiu opened 2 years ago

v-ctiutiu commented 2 years ago

Background

It's very easy to create overlapping IPs/subnets across multiple CRDs, for same or different gateways.

Proposal

Have the controller logic check if same route is not managed by other CRDs, and deny the request if so.

Hint:

Maybe admission control is more appropriate, via validating webhooks.