Skip to content
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

Reorder account ID lookup in getOwnerAccountID #153

Merged

Conversation

a-hilaly
Copy link
Member

This commit changes the order of operations in the getOwnerAccountID
function to prioritize checking namespace annotations over resource
status when determining the owner account ID.

The new order of checks is:

  1. Namespace annotations
  2. Resource status (status.ackResourceMetadata)
  3. Controller's default AWS account

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

This commit changes the order of operations in the `getOwnerAccountID`
function to prioritize checking namespace annotations over resource
status when determining the owner account ID.

The new order of checks is:
1. Namespace annotations
2. Resource status (`status.ackResourceMetadata`)
3. Controller's default AWS account
@ack-prow ack-prow bot requested a review from jlbutler July 31, 2024 23:42
@ack-prow ack-prow bot added the approved label Jul 31, 2024
Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

👍🏼
/lgtm

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

ack-prow bot commented Jul 31, 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 merged commit fa6e794 into aws-controllers-k8s:main Jul 31, 2024
5 checks passed
ack-prow bot pushed a commit to aws-controllers-k8s/iam-controller that referenced this pull request Aug 1, 2024
Mainly bringing the new bug fixes from runtime to the iam controller:
- aws-controllers-k8s/runtime#154
- aws-controllers-k8s/runtime#153

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