Skip to content

Conversation

carflo
Copy link
Contributor

@carflo carflo commented Apr 12, 2023

Issue

#2367

Description

  • Adds a new flag --service-target-eni-security-group-tags to allow users to specify additional tags that should be used when the controller looks for the security group to use when adding ingress rules for NLB targets. This addresses the limitation called out in the documentation here.

Example: Using --service-target-eni-security-group-tags=Name=aws-lbc-nlb-sg will look for a security group that has the required kubernetes.io/cluster/${cluster-name} tag AND a Name=aws-lbc-nlb-sg tag.

Other:

  • Fixes a couple typos in documentation.
  • Removes trailing whitespace in documentation.

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 🌟

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 12, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot
Copy link
Contributor

Welcome @carflo!

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 k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Apr 12, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @carflo. 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 12, 2023
@carflo carflo changed the title Abitrary tags for nlb sg Enables providing multiple tags for worker node security group discovery Apr 12, 2023
@k8s-ci-robot k8s-ci-robot added 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 Apr 12, 2023
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 12, 2023
@armenr
Copy link

armenr commented Apr 21, 2023

:) Really looking forward to this PR!

@Pacobart
Copy link

Looking forward to this much needed functionality!

@ricardorqr
Copy link

Any update on this PR?

@carflo
Copy link
Contributor Author

carflo commented Jul 7, 2023

@kishorj @johngmyers is there anything else I can do to get a review from you folks? Thanks in advance 🙇

@johngmyers
Copy link
Contributor

It's in my queue

Copy link
Contributor

@johngmyers johngmyers left a comment

Choose a reason for hiding this comment

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

The TargetGroupBinding reconciler is not an area I'm overly familiar with, so I'm learning as I go.

The name of the flag doesn't say much about what it does:

  • "endpoint" is ambiguous. Perhaps use something more like target-eni-security-group-tags
  • This is documented in the section specific to Services and the description suggests that it is not relevant to Ingresses. I haven't yet found where in the code this gets bypassed for the ALB case. If it is specific to Service, then the flag name should start with service-.

@johngmyers
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jul 9, 2023
@M00nF1sh
Copy link
Collaborator

M00nF1sh commented Aug 22, 2023

left some minor comments.

this seems an alternative solution to #2367, but requires more manual intervention(extra tags on SGs).

I'm good with this change as a temporary solution and it works for customers that only want one SG to be modified.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 22, 2023
@carflo carflo requested a review from M00nF1sh August 22, 2023 19:08
@johngmyers johngmyers mentioned this pull request Aug 23, 2023
12 tasks
@carflo carflo requested a review from johngmyers August 28, 2023 20:39
@carflo carflo requested a review from johngmyers August 29, 2023 20:44
@carflo carflo requested a review from johngmyers August 29, 2023 23:51
@carflo
Copy link
Contributor Author

carflo commented Aug 30, 2023

/retest

@johngmyers
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2023
Copy link
Collaborator

@M00nF1sh M00nF1sh left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve
Thanks for making this contribution :D

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carflo, M00nF1sh

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 Aug 31, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 51.85% and project coverage change: +1.08% 🎉

Comparison is base (940efc7) 54.70% compared to head (f3a9742) 55.78%.
Report is 52 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3147      +/-   ##
==========================================
+ Coverage   54.70%   55.78%   +1.08%     
==========================================
  Files         148      149       +1     
  Lines        8590     8830     +240     
==========================================
+ Hits         4699     4926     +227     
- Misses       3559     3566       +7     
- Partials      332      338       +6     
Files Changed Coverage Δ
pkg/config/controller_config.go 14.92% <0.00%> (-0.46%) ⬇️
pkg/targetgroupbinding/resource_manager.go 15.17% <0.00%> (ø)
pkg/targetgroupbinding/networking_manager.go 40.84% <58.33%> (+6.29%) ⬆️

... and 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.