Files
floci/src/main/java/io
Hector Ventura 0a4cd51acb fix(eks): tag node groups, Fargate profiles, add-ons, pod identity associations and access entries by ARN (#7113)
* fix(eks): tag node groups, Fargate profiles, add-ons, pod identity associations and access entries by ARN

TagResource, UntagResource and ListTagsForResource read the text after an ARN's last '/' as a cluster name, so a node group, Fargate profile, add-on, pod identity association or access entry ARN looked up a cluster named after its id and answered ResourceNotFoundException. The ARN is now parsed and routed by its resource type to the store that holds that resource, and a child ARN reaches the resource only when it matches the stored ARN.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(eks): answer TagResource and UntagResource with 200

The EKS model declares no responseCode on either tag write, so both answer 200, but EksService kept the shared tag route's 204 default.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

* fix(eks): lock tag writes and keep tags within the TagMap limits

The child retag methods now share their service's lock, so a tag write
racing a delete or disassociate can no longer restore the record it read.
TagResource checks the merged tags against the TagMap limits for every
resource type, and the tag operations answer the BadRequestException and
NotFoundException the model declares. A resource ARN with an empty
cluster or child segment is a bad request instead of a server error.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-31 16:46:44 -04:00
..