Skip to content

Conversation

@vijtrip2
Copy link
Contributor

@vijtrip2 vijtrip2 commented Feb 18, 2022

Issue: aws-controllers-k8s/community#1186

Description of changes:

  • Call handleRequeues method after setting the ACK.ResourceSynced condition
  • Use AWSResourceManager.IsSynced method to determine the ACK.ResourceSynced condition
  • Only set ACK.ResourceSynced condition inside ensureConditions function when the condition is originally missing
  • Update existing unit-tests to include rm.IsSynced() call and Add a new unit-test when rm.IsSynced returns false

  • Also tested locally using Sagemaker controller, whose e2e tests verify that SyncedCondition is properly set in success and failure scenarios. This ensures there is no breakage in existing functionality.

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

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.

Sweet! Left few comments below

@vijtrip2 vijtrip2 requested a review from a-hilaly February 22, 2022 18:30
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.

LGTM overall. Great testing @vijtrip2
/approve

Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

@vijtrip2 please separate this into two PRs, one for the code changes to call IsSynced in ensureConditions and another for the resource reference resolution bits. It's difficult to review this PR as it stands because these two code changes are unrelated to each other.

@vijtrip2 vijtrip2 requested a review from jaypipes February 23, 2022 17:52
Copy link
Contributor

@RedbackThomson RedbackThomson left a comment

Choose a reason for hiding this comment

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

Just one question, otherwise good to go

@vijtrip2 vijtrip2 requested a review from a-hilaly February 25, 2022 17:51
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Rock on, thanks for separating the PRs :)

@jaypipes
Copy link
Collaborator

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 25, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented Feb 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jaypipes, RedbackThomson, vijtrip2

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:
  • OWNERS [A-Hilaly,RedbackThomson,jaypipes,vijtrip2]

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

@ack-bot ack-bot merged commit 4c54905 into aws-controllers-k8s:main Feb 25, 2022
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.

5 participants