Skip to content

Commit

Permalink
feat(eks): support alb controller versions 2.7.0-2.8.2 (#31264)
Browse files Browse the repository at this point in the history
As #29959 has been stale for a while, I am submitting this PR to follow up.

### Issue # (if applicable)

Closes #31082

### Reason for this change



### Description of changes

iam policy files were downloaded using this script

```sh
#!/bin/bash

versions=("2.7.0" "2.7.1" "2.7.2" "2.8.0" "2.8.1" "2.8.2")
target_dir="/workspace/aws-cdk/packages/aws-cdk-lib/aws-eks/lib/addons"

for version in "${versions[@]}"; do
    url="https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v${version}/docs/install/iam_policy.json"
    filename="alb-iam_policy-v${version}.json"
    target_file="${target_dir}/${filename}"

    echo "Downloading ${url} to ${target_file}"
    curl -s "${url}" -o "${target_file}"
done
```
helm repo updated using

```sh
helm repo add eks https://aws.github.io/eks-charts
helm repo update
helm search repo aws-load-balancer-controller --versions --output json
```

get the app_version and helm version mapping using

```sh
$ helm search repo aws-load-balancer-controller --versions --output json | jq -r '.[] | select(.app_version | startswith("v2")) | "\(.app_version) \(.version)"'
v2.8.2 1.8.2
v2.8.1 1.8.1
v2.8.0 1.8.0
v2.7.2 1.7.2
v2.7.1 1.7.1
v2.7.0 1.7.0
```

### Description of how you validated changes

- [x] parameterized tests in the unit tests
- [x] using the latest version in the integ test



### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
pahud authored and GavinZZ committed Sep 10, 2024
1 parent 524dc3b commit cbb5740
Show file tree
Hide file tree
Showing 28 changed files with 1,896 additions and 306 deletions.

This file was deleted.

Loading

0 comments on commit cbb5740

Please sign in to comment.