feat: Store resource partition in Status#615
Conversation
300e3ab to
5680f13
Compare
|
tested in aws-controllers-k8s/s3-controller#173 |
|
Issues go stale after 180d of inactivity. |
|
Stale issues rot after 60d of inactivity. |
5680f13 to
fa1c267
Compare
| // Partition returns the AWS partition in which the reosurce exists, or | ||
| // nil if this information is not known. |
There was a problem hiding this comment.
nit
| // Partition returns the AWS partition in which the reosurce exists, or | |
| // nil if this information is not known. | |
| // Partition returns the AWS partition in which the resource exists, or | |
| // nil if this information is not known. |
| // We use the account ID, region, partition, and role ARN to uniquely identify a | ||
| // resource manager. This helps us to avoid creating multiple resource | ||
| // managers for the same account/region/roleARN combination. | ||
| rmId := fmt.Sprintf("%s/%s/%s", id, region, roleARN) |
There was a problem hiding this comment.
This doesn't appear to actually use partition.
There was a problem hiding this comment.
there is no cross partition support..using it as a cache key would not be necessary
There was a problem hiding this comment.
Okay, we might want to update the comment to reflect that then.
We use the account ID, region, partition, and role ARN to uniquely identify a
// resource manager
fa1c267 to
c0efeb7
Compare
c0efeb7 to
ffcb8e3
Compare
ffcb8e3 to
2ea63bd
Compare
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: knottnt, michaelhtm The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test ec2-controller-test |
|
/retest |
Description of changes:
Store resource partition as ACKResourceMetadata
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.