-
Notifications
You must be signed in to change notification settings - Fork 5
gateway external peerings #972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
886e0fb to
97f2f1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for gateway external peerings to complement existing switch external peerings. The changes enable users to configure external connectivity through gateways in addition to the existing switch-based approach.
- Adds gateway mode support for external peerings with new
gw/gatewayoption - Implements gateway peering logic that creates
PeeringSpecentries for VPC-to-external connectivity - Updates connectivity testing to check both switch and gateway external reachability
Comments suppressed due to low confidence (1)
pkg/hhfab/testing.go:1
- The condition
len(prefixParts) > 1should belen(prefixParts) != 2since splitting by underscore should result in exactly 2 parts for a valid prefix with underscore. The current condition will incorrectly reject valid prefixes.
// Copyright 2024 Hedgehog
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
bd1e0c4 to
b5a6473
Compare
99460f2 to
ff0f1ed
Compare
ff0f1ed to
901c072
Compare
901c072 to
7af5208
Compare
7af5208 to
cb09227
Compare
pkg/hhfab/testing.go
Outdated
| vpc: { | ||
| Expose: []gwapi.PeeringEntryExpose{vpcExpose}, | ||
| }, | ||
| ext: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should have a ext. prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have probably tested this again after the changes in the fabric PR 😅 it works fine now. although I don't really like that the user has to create a peering with an ext. prefix to the external name, this will create confusion imho
cb09227 to
d252995
Compare
Signed-off-by: Emanuele Di Pascale <[email protected]>
Signed-off-by: Emanuele Di Pascale <[email protected]>
d252995 to
8d54cdf
Compare
To go with githedgehog/fabric#1033