-
Notifications
You must be signed in to change notification settings - Fork 0
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
AWS VPC Peering and Security Group Firewall rule cluster resources enhancement #566
Conversation
"errors" | ||
|
||
"github.com/go-logr/logr" |
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.
please leave the gap
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.
fixed
if err != nil { | ||
return err | ||
} | ||
} | ||
|
||
if awsPeering.Annotations[models.UpdateQueuedAnnotation] == "" && |
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.
how about using the UpdatingEvent
annotation?
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.
It makes sense. Good catch, thanks. Fixed
aws.Annotations[models.UpdateQueuedAnnotation] = models.True | ||
err = r.Patch(ctx, aws, patch) | ||
if err != nil { | ||
l.Error(err, "Cannot patch AWS VPC Peering resource metadata with update queued annotation", | ||
"AWS VPC Peering ID", aws.Status.ID, | ||
) | ||
r.EventRecorder.Eventf( | ||
aws, models.Warning, models.PatchFailed, | ||
"Patching resource with update queued annotation is failed. Reason: %v", | ||
err, | ||
) | ||
|
||
return models.ReconcileRequeue | ||
} | ||
|
||
err = r.API.UpdatePeering(aws.Status.ID, instaclustr.AWSPeeringEndpoint, &aws.Spec) |
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.
it seems unnecessary
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.
Removed
967000c
to
fd2c1bf
Compare
fd2c1bf
to
3c564a2
Compare
Done: