Skip to content

fix(networkacl): Correct update order and entries/associations handlers #202

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
merged 2 commits into from
Jun 20, 2024

Conversation

a-hilaly
Copy link
Member

The custom update logic for NetworkACL resources was syncing the Entries before
the Tags. This could lead to issues if the Entries sync failed as the Tags
would not be updated..

This change also updates the order to sync Tags before Entries. It also uses
DeepCopy when passing the resource to createAssociation and `createEntries
to avoid modifying the original desired state.

Additionally, the exit functions in hooks.go were fixed to properly
handle the error return value.

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

The custom update logic for Network ACL resources was syncing the Entries before
the Tags. This could lead to issues if the Entries sync failed, as the Tags
would not be updated.

This change updates the order to sync Tags before Entries. It also uses
DeepCopy when passing the resource to createAssociation and createEntries to
avoid modifying the original desired state.

Additionally, the exit functions in hooks.go and sdk.go were fixed to properly
handle the error return value.
@ack-prow ack-prow bot requested review from jljaco and LikithaVemulapalli June 19, 2024 08:39
@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
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

@ack-prow ack-prow bot merged commit c37cd3b into aws-controllers-k8s:main Jun 20, 2024
6 checks passed
nnbu pushed a commit to nnbu/ack-ec2-controller that referenced this pull request Sep 18, 2024
…rs (aws-controllers-k8s#202)

The custom update logic for `NetworkACL` resources was syncing the `Entries` before
the `Tags`. This could lead to issues if the `Entries` sync failed as the Tags
would not be updated..

This change also updates the order to sync `Tags` before `Entries`. It also uses
`DeepCopy` when passing the resource to `createAssociation` and `createEntries
to avoid modifying the original desired state.

Additionally, the exit functions in `hooks.go` were fixed to properly
handle the error return value.

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