Skip to content

Conversation

@vijtrip2
Copy link
Contributor

@vijtrip2 vijtrip2 commented Jan 11, 2022

Description of changes:

  • ACK reconciler marks a resource as Managed before performing the CREATE call
  • ResourceReference in ACK reconciler is resolved before READ_ONE call which precedes CREATE call
  • When ResourceReference resolution fails, ACK reconciler needs to set Status.Condition indicating reference resolution failed
  • Hence the status patching needs to be done for unmanaged resources too
  • NotFound error while status patching of deleted resource is caught and not logged in controller logs

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

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.

Please see aws-controllers-k8s/community#931. We will need to figure out a different solution to this, because this conditional check on whether the resource is under management was specifically added in to prevent the issue described in 931.

@jaypipes jaypipes added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 11, 2022
@vijtrip2 vijtrip2 requested a review from jaypipes January 11, 2022 23:37
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.

femto-nit inline, otherwise I'm good with this!

@vijtrip2 vijtrip2 force-pushed the patch-unmanaged-resource branch from fad0a55 to 9e97f84 Compare January 12, 2022 01:31
@vijtrip2 vijtrip2 requested a review from jaypipes January 12, 2022 01:32
@vijtrip2 vijtrip2 removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 12, 2022
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.

👍

@jaypipes
Copy link
Collaborator

/lgtm

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

ack-bot commented Jan 12, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaypipes, 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:

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 30afbb6 into aws-controllers-k8s:main Jan 12, 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.

3 participants