Skip to content

Add tests to ensure resource reference is not replaced by controller #220

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

michaelhtm
Copy link
Member

Issue #1880

Description of changes:
These tests ensure that after an update,
the controller won't replace the resource
reference with the ID itself.

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

@michaelhtm michaelhtm force-pushed the add-ensure-reference-test branch 7 times, most recently from 7cebbda to 700ddd0 Compare September 18, 2024 01:04
These tests ensure that after an update, the controller won't
replace the resource reference with the ID itself.
This commit addresses a customer issue, where the update operation
was overwriting the routeTable spec, getting rid of the reference
names placed by the user, and replacing them with the values retrieved
from the AWS API.

In the future we want to make changes in how controllers are generated
to ensure the sdkfind has places in store to support not overriding
user defined resource references
@michaelhtm michaelhtm force-pushed the add-ensure-reference-test branch from 700ddd0 to 52b81c8 Compare September 18, 2024 17:36
Copy link

ack-prow bot commented Sep 18, 2024

@michaelhtm: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ec2-verify-attribution 52b81c8 link false /test ec2-verify-attribution

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on this @michaelhtm !
/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2024
Copy link

ack-prow bot commented Sep 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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 added the approved label Sep 18, 2024
@ack-prow ack-prow bot merged commit ffc48b2 into aws-controllers-k8s:main Sep 18, 2024
6 of 7 checks passed
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