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

Add helm chart configuration for --aws-vpc-tags argument #3906

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

pinkavaj
Copy link
Contributor

@pinkavaj pinkavaj commented Oct 20, 2024

Issue

#3904 (not solves the --aws-vpc-tag-key part due to #3889)

Description

Add the configuration options to helm chart

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the docs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 20, 2024
Copy link

linux-foundation-easycla bot commented Oct 20, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: pinkavaj / name: Jiří Pinkava (411778c)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Oct 20, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @pinkavaj!

It looks like this is your first PR to kubernetes-sigs/aws-load-balancer-controller 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/aws-load-balancer-controller has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @pinkavaj. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Oct 20, 2024
@pinkavaj pinkavaj force-pushed the pi-args branch 2 times, most recently from 57b8beb to c5cfd11 Compare October 22, 2024 08:43
@pinkavaj
Copy link
Contributor Author

It would be IMHO good to solve #3889 before this is considered to be merged.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 6, 2024
@pinkavaj pinkavaj changed the title Add helm chart configuration for --aws-vpc-tags and --aws-vpc-tag-key arguments Add helm chart configuration for --aws-vpc-tags argument Nov 6, 2024
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 6, 2024
@pinkavaj pinkavaj marked this pull request as ready for review November 6, 2024 11:38
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 6, 2024
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 6, 2024
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 13, 2024
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 13, 2024
@sarevalo2002
Copy link
Contributor

Hi @pinkavaj, thanks for your contribution! Since this input is a stringMap, the input to --aws-vpc-tags in the deployment.yaml file should be handled slightly differently. They should be able to parse inputs of the form --set vpcTags.TagKey1=TagValue1,vpcTags.TagKey2=TagValue2,vpcTags.TagKey3=TagValue3. Feel free to look at how other stringMap flags are handled, such as controllerConfig.featureGates (which corresponds to --feature-gates) and defaultTags (which corresponds to --default-tags).

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 30, 2024
@pinkavaj
Copy link
Contributor Author

pinkavaj commented Dec 30, 2024

@sarevalo2002

Hi @pinkavaj, thanks for your contribution! Since this input is a stringMap, the input to --aws-vpc-tags in the deployment.yaml file should be handled slightly differently. They should be able to parse inputs of the form --set vpcTags.TagKey1=TagValue1,vpcTags.TagKey2=TagValue2,vpcTags.TagKey3=TagValue3. Feel free to look at how other stringMap flags are handled, such as controllerConfig.featureGates (which corresponds to --feature-gates) and defaultTags (which corresponds to --default-tags).

Updated, the MR expects the #3954 will be merged, but should work with current code as well.

@sarevalo2002
Copy link
Contributor

Hi @pinkavaj, thanks for the update! It looks good to me now. I've verified that applying a single tag (--set vpcTags.TagKey1=TagValue1) and multiple tags (--set vpcTags.TagKey1=TagValue1,vpcTags.TagKey2=TagValue2,vpcTags.TagKey3=TagValue3) correctly sets --aws-vpc-tags in the deployment file. When combined with the update in #3954, the VPC is appropriately set based on the given tags in helm. I'll loop in @shraddhabang for ok-to-test and lgtm labels.

@@ -1,7 +1,7 @@
apiVersion: v2
name: aws-load-balancer-controller
description: AWS Load Balancer Controller Helm chart for Kubernetes
version: 1.11.0
version: 1.11.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dont need to update the version here. We will update it when we cut a release PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx! Fixed.

@shraddhabang
Copy link
Collaborator

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 30, 2024
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 30, 2024
@shraddhabang
Copy link
Collaborator

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 6, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pinkavaj, shraddhabang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 6, 2025
@k8s-ci-robot k8s-ci-robot merged commit 4c9f8a1 into kubernetes-sigs:main Jan 6, 2025
5 checks passed
@pinkavaj pinkavaj deleted the pi-args branch January 6, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants