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

eks: Support latest AWS Load Balancer Controller versions #31082

Closed
2 tasks
arlampin opened this issue Aug 12, 2024 · 3 comments · Fixed by #31264
Closed
2 tasks

eks: Support latest AWS Load Balancer Controller versions #31082

arlampin opened this issue Aug 12, 2024 · 3 comments · Fixed by #31264
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@arlampin
Copy link

Describe the feature

The latest controller version is 2.8.2, but CDK only supports versions up to 2.6.2. Also, both 2.7.x and 2.8.x have some changes to reference IAM policies, so using them is not just a matter of increasing version number.

Use Case

I would like to use the latest controller version

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.151.0

Environment details (OS name and version, etc.)

N/A

@arlampin arlampin added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 12, 2024
@github-actions github-actions bot added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Aug 12, 2024
@ashishdhingra ashishdhingra self-assigned this Aug 12, 2024
@ashishdhingra ashishdhingra added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 12, 2024
@ashishdhingra
Copy link
Contributor

ashishdhingra commented Aug 12, 2024

@ashishdhingra ashishdhingra added p2 effort/small Small work item – less than a day of effort and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Aug 12, 2024
@ashishdhingra ashishdhingra removed their assignment Aug 12, 2024
@ashishdhingra ashishdhingra added effort/medium Medium work item – several days of effort and removed effort/small Small work item – less than a day of effort labels Aug 12, 2024
@pahud
Copy link
Contributor

pahud commented Aug 30, 2024

PR WIP #29959

@mergify mergify bot closed this as completed in #31264 Sep 4, 2024
mergify bot pushed a commit that referenced this issue Sep 4, 2024
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*
Copy link

github-actions bot commented Sep 4, 2024

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2024
pahud added a commit to pahud/aws-cdk that referenced this issue Sep 9, 2024
As aws#29959 has been stale for a while, I am submitting this PR to follow up.

### Issue # (if applicable)

Closes aws#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*
xazhao pushed a commit to xazhao/aws-cdk that referenced this issue Sep 12, 2024
As aws#29959 has been stale for a while, I am submitting this PR to follow up.

### Issue # (if applicable)

Closes aws#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*
GavinZZ pushed a commit that referenced this issue Sep 12, 2024
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*
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants