Giter VIP home page Giter VIP logo

Comments (8)

schrej avatar schrej commented on June 22, 2024 1

Currently this is only possible by explicitly specifying which ranges should be used. In this case by writing

addresses:
- 10.10.10.2
- 10.10.10.4-10.10.10.255

That's not a great way of course. We can consider adding a exclude or reserved field to make this easier.

from cluster-api-ipam-provider-in-cluster.

lubedacht avatar lubedacht commented on June 22, 2024

That would be nice and also increase the readability of the configuration. Also makes things easier, if you for instance rather intend to provide a CIDR block instead of ranges.

from cluster-api-ipam-provider-in-cluster.

Sajiyah-Salat avatar Sajiyah-Salat commented on June 22, 2024

Hello @schrej I would like to take this up and want to start my contribution journey. Can you please specify the exact location where the change needed? Also it will be helpful if you give me some working solution adn explain the issue in detail
Thank you!

from cluster-api-ipam-provider-in-cluster.

Sajiyah-Salat avatar Sajiyah-Salat commented on June 22, 2024

/assign

from cluster-api-ipam-provider-in-cluster.

schrej avatar schrej commented on June 22, 2024

Hey @Sajiyah-Salat, happy to hear that!
First, you'll need to extend the InClusterIPPoolSpec with a new string list field to list excluded addresses and ranges. I'd call it exclude or something similar.
Then you need to update the PoolSpecToIPSet function in the internal/poolutil package to remove any addresses or ranges listed in the excluded field.
Finally a few tests to verify that the feature works as intended would be great!

I hope that helps you to get started.

from cluster-api-ipam-provider-in-cluster.

mcbenjemaa avatar mcbenjemaa commented on June 22, 2024

@schrej

Wouldn't be helpful to add a name field in exclude?
something similair to this:

exclude:
- name: ci-workers
  address: 10.10.10.5-10.10.10.15
- name: dhcp
  address: 10.10.10.4

from cluster-api-ipam-provider-in-cluster.

schrej avatar schrej commented on June 22, 2024

Not a big fan of that.
Imo you only need a name or a description if you have a lot of exclusions. And in that case I'd argue that you should size down your pool or specify usable addresses as ranges.

from cluster-api-ipam-provider-in-cluster.

Noroth avatar Noroth commented on June 22, 2024

@schrej I've seen that the assignment was removed. I could take over here. Apart from what you have mentioned, I guess the webhook validation also has to be updated, right?

from cluster-api-ipam-provider-in-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.