-
Notifications
You must be signed in to change notification settings - Fork 100
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
Route table duplicate "0.0.0.0/0" rule creation #1111
Conversation
/test |
Testrun: e2e-btwqj +---------------------+-----------------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+-----------+----------+ | infrastructure-test | infrastructure-test-recover | Succeeded | 27m15s | | bastion-test | bastion-test | Succeeded | 4m38s | | dnsrecord-test | dnsrecord-test | Succeeded | 5m51s | | infrastructure-test | infrastructure-test-tf | Succeeded | 34m34s | | infrastructure-test | infrastructure-test-flow | Succeeded | 26m21s | | infrastructure-test | infrastructure-test-migrate | Succeeded | 31m7s | +---------------------+-----------------------------+-----------+----------+ |
pkg/aws/client/updater.go
Outdated
if !slices.ContainsFunc(desired.Routes, func(r *Route) bool { | ||
desiredRouteDestination, err := r.DestinationId() | ||
if err != nil { | ||
log.Error(err, "failed to find suitable destination for desired route", "route") |
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.
This will result in a line like msg="failed to find suitable destination for desired route" error="no route destination found"
, which is a little bit redundant for my taste.
Maybe something more like
log.Error(err, "error deleting route", "route")
Which is not really that much better but does not contain the same information twice.
Also, I think there is an argument missing, don't you mean:
log.Error(err, "failed to find suitable destination for desired route", "route", route)
pkg/aws/client/client.go
Outdated
@@ -2134,6 +2134,7 @@ func IsNotFoundError(err error) bool { | |||
// IsAlreadyAssociatedError returns true if the given error is a awserr.Error indicating that an AWS resource was already associated. | |||
func IsAlreadyAssociatedError(err error) bool { | |||
if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "Resource.AlreadyAssociated" { | |||
aerr.Code() |
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.
Is this a debug line?
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.
nice catch
@AndreasBurger @hebelsan PTAL |
/test |
Testrun: e2e-76rtb +---------------------+-----------------------------+-----------+----------+ | NAME | STEP | PHASE | DURATION | +---------------------+-----------------------------+-----------+----------+ | infrastructure-test | infrastructure-test-recover | Succeeded | 26m28s | | bastion-test | bastion-test | Succeeded | 6m36s | | dnsrecord-test | dnsrecord-test | Succeeded | 6m31s | | infrastructure-test | infrastructure-test-tf | Succeeded | 36m12s | | infrastructure-test | infrastructure-test-flow | Succeeded | 27m28s | | infrastructure-test | infrastructure-test-migrate | Succeeded | 31m18s | +---------------------+-----------------------------+-----------+----------+ |
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.
lgtm, however we never make use of the bool return value modified
of the function UpdateRouteTable
.
Should we therefore drop it?
The API for the |
How to categorize this PR?
/area control-plane
/kind bug
/platform aws
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: