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

chore(eks): add new ALB controller versions #29959

Closed
wants to merge 1 commit into from

Conversation

nmussy
Copy link
Contributor

@nmussy nmussy commented Apr 25, 2024

Issue # (if applicable)

None as far as I could tell

Follow up to the reverted #29470

Reason for this change

Update the CDK listed ALB controller versions to match the current availability

Description of changes

Description of how you validated changes

I listed the list of available versions by using the ecr:ListImages command on the amazon/aws-load-balancer-controller repository. I'm also filtering out tags that do not match a v1.2.3 pattern, e.g. v2.0.0-rc5, v2.0.0-test-linux_amd64

For the Helm chart version, I use the Helm CLI to obtain the corresponding versions, which worked a ton better and was easily integrated to my tool:

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

I'll update/add integ tests, pending maintainer feedback

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team April 25, 2024 08:00
@github-actions github-actions bot added distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2 labels Apr 25, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 89b026d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Apr 25, 2024
@paulhcsun paulhcsun self-assigned this Apr 25, 2024
@paulhcsun
Copy link
Contributor

hey @nmussy, I spoke with @colifran about how we can test these changes and I think for unit tests we could just test the new versions being added like in #27910, but ideally I'd like to turn those tests into parameterized tests so that we can test all of the supported versions instead of just replacing what was used previously with the newly added versions.

And for integ tests, I think it would be sufficient to just use the newly added version in the existing integ test case as seen here: https://github.com/aws/aws-cdk/pull/25330/files#r1179285561.

Let me know if that makes sense to you or if you have any other quetions!

@pahud pahud added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jul 16, 2024
@pahud
Copy link
Contributor

pahud commented Jul 16, 2024

This PR has been stale for more than 2 months. I am adding a response-requested label on it. @nmussy do you have any updates on this?

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jul 16, 2024
@nmussy
Copy link
Contributor Author

nmussy commented Jul 20, 2024

Hey @pahud, I'd completely forgotten about this PR. I'm going to be unavailable for a week or so, but I definitely intend on adding integrations to this PR when I get back 👍

@pahud pahud added the pr-linter/do-not-close The PR linter will not close this PR while this label is present label Jul 22, 2024
@pahud
Copy link
Contributor

pahud commented Aug 31, 2024

As this PR has been stale for a while, I submitted yet another PR #31264 and is ready for review.

mergify bot pushed a commit that referenced this pull request 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*
pahud added a commit to pahud/aws-cdk that referenced this pull request 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 pull request 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 pull request 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*
@paulhcsun
Copy link
Contributor

Closing this as #31264 has already been merged.

@paulhcsun paulhcsun closed this Sep 16, 2024
Copy link

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 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. pr-linter/do-not-close The PR linter will not close this PR while this label is present
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants