Skip to content

Bump versions pre 2.7 release#2002

Merged
aauren merged 7 commits intomasterfrom
bump_versions_pre_2.7_release
Feb 13, 2026
Merged

Bump versions pre 2.7 release#2002
aauren merged 7 commits intomasterfrom
bump_versions_pre_2.7_release

Conversation

@aauren
Copy link
Collaborator

@aauren aauren commented Feb 2, 2026

FYI @mrueg @catherinetcai - This should prep us for a v2.7.0 release of kube-router. There have been a lot of changes lately, so I think that we're well ready.

Unfortunately, the update from gobgp v3.37.0 -> v4.2.0 was a lot more work than I thought it would be when I originally started working on this release earlier today.

//
// pb, err := bgp.NewPathBuilder("10.244.1.0/24", "192.168.1.1")
// pb, err := bgp.NewPathBuilder("2001:db8::/64", "2001:db8::1")
func NewPathBuilder(cidr string, nextHop string) (*PathBuilder, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the plan to extend this with more logic in the future? I like the builder pattern, but almost all of the logic for this is already inside this constructor. I wonder if it would just be simpler to not have the builder pattern and just have a function that takes in the isWithdrawal bool and returns the apiutil.Path:

func BuildPath(cidr, nextHop string, isWithdrawal bool) (*apiutil.Path, error) 

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a fair point. Even the AI wanted me to consolidate down to using a bool in the signature. Mostly, I just really don't like boolean parameter values, because people usually just end up passing true / false in on them which doesn't lend itself towards description. This can be solved by making a variable like withdrawPath := true and then passing BuildPath(myCIDR, nextHop, withdrawPath) but in practice this almost never happens.

Additionally, maybe this is just sky high hopes, but I was thinking that Path's are pretty integral to what we use BGP for so having a more robust builder that people are already familiar with might encourage extensibility? That being said, we haven't done THAT much with Path over the years.

All that to say, I could go either way.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong preference here and well... I do like the builder pattern because it's quite clean 😬. Fine with me to leave it in!

Copy link
Collaborator

@catherinetcai catherinetcai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I realized I didn't have blocking changes here and should have hit approve.

@aauren aauren force-pushed the bump_versions_pre_2.7_release branch from 19870b0 to ab19b3d Compare February 4, 2026 16:55
@aauren aauren force-pushed the bump_versions_pre_2.7_release branch from ab19b3d to 689edb5 Compare February 13, 2026 22:26
@aauren aauren merged commit da98050 into master Feb 13, 2026
6 checks passed
@aauren aauren deleted the bump_versions_pre_2.7_release branch February 13, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants