Skip to content

Enhance RouteTable CRD sync routes synchronisation #199

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

Merged

Conversation

a-hilaly
Copy link
Member

  • Update syncRoutes method to handle errors from excludeAWSRoute
  • Reorder route deletion and addition in syncRoutes for proper sync
  • Modify excludeAWSRoute to return an error and rename variables for clarity
  • Move tags sync before routes sync in customUpdateRouteTable
  • Update sdkCreate to use a copy of the RouteTable for creating routes
  • Minor formatting and comment updates in template files

The changes in this commit enhance the synchronization of routes for the
RouteTable Custom Resource Definition (CRD). The syncRoutes method now handles
errors returned from the excludeAWSRoute function and reorders the deletion
and addition of routes for proper synchronization. The excludeAWSRoute
function is modified to return an error and has some variable renaming for
better clarity...

In the customUpdateRouteTable method the tags synchronization is moved before
the routes synchronization to ensure tagss are updated before route changes.

The sdkCreate method now uses a deep copy of the RouteTable when creating
routes to avoid modifying the original desired state

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Update `syncRoutes` method to handle errors from `excludeAWSRoute`
- Reorder route deletion and addition in `syncRoutes` for proper sync
- Modify `excludeAWSRoute` to return an error and rename variables for clarity
- Move tags sync before routes sync in `customUpdateRouteTable`
- Update `sdkCreate` to use a copy of the RouteTable for creating routes
- Minor formatting and comment updates in template files

The changes in this commit enhance the synchronization of routes for the
RouteTable Custom Resource Definition (CRD). The `syncRoutes` method now handles
errors returned from the `excludeAWSRoute` function and reorders the deletion
and addition of routes for proper synchronization. The `excludeAWSRoute`
function is modified to return an error and has some variable renaming for
better clarity...

In the `customUpdateRouteTable` method the tags synchronization is moved before
the routes synchronization to ensure tagss are updated before route changes.

The `sdkCreate` method now uses a deep copy of the RouteTable when creating
routes to avoid modifying the original desired state
@a-hilaly a-hilaly changed the title Enhance RouteTable CRD sync routes and exclude AWS routes Enhance RouteTable CRD sync routes synchronisation Jun 19, 2024
@ack-prow ack-prow bot requested review from jljaco and LikithaVemulapalli June 19, 2024 07:40
@ack-prow ack-prow bot added the approved label Jun 19, 2024
@ack-bot
Copy link
Collaborator

ack-bot commented Jun 20, 2024

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 20, 2024
@ack-prow ack-prow bot merged commit 16b957d into aws-controllers-k8s:main Jun 20, 2024
6 checks passed
Copy link

ack-prow bot commented Jun 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, ack-bot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

nnbu pushed a commit to nnbu/ack-ec2-controller that referenced this pull request Sep 18, 2024
…-k8s#199)

- Update `syncRoutes` method to handle errors from `excludeAWSRoute`
- Reorder route deletion and addition in `syncRoutes` for proper sync
- Modify `excludeAWSRoute` to return an error and rename variables for clarity
- Move tags sync before routes sync in `customUpdateRouteTable`
- Update `sdkCreate` to use a copy of the RouteTable for creating routes
- Minor formatting and comment updates in template files

The changes in this commit enhance the synchronization of routes for the
RouteTable Custom Resource Definition (CRD). The `syncRoutes` method now handles
errors returned from the `excludeAWSRoute` function and reorders the deletion
and addition of routes for proper synchronization. The `excludeAWSRoute`
function is modified to return an error and has some variable renaming for
better clarity...

In the `customUpdateRouteTable` method the tags synchronization is moved before
the routes synchronization to ensure tagss are updated before route changes.

The `sdkCreate` method now uses a deep copy of the RouteTable when creating
routes to avoid modifying the original desired state

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants