aws-load-balancer-controller icon indicating copy to clipboard operation
aws-load-balancer-controller copied to clipboard

config_types: Add weight validation

Open jkdihenkar opened this issue 1 year ago • 23 comments

Adding a model validation for weights as described in the AWS LB Documentation -

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#:~:text=You%20can%20use%20forward%20actions%20to%20route%20requests%20to%20one%20or%20more%20target%20groups.%20If%20you%20specify%20multiple%20target%20groups%20for%20a%20forward%20action%2C%20you%20must%20specify%20a%20weight%20for%20each%20target%20group.%20Each%20target%20group%20weight%20is%20a%20value%20from%200%20to%20999.

Issue

Description

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?! :exploding_head:

  • [ ] Backfilled missing tests for code in same general area :tada:
  • [ ] Refactored something and made the world a better place :star2:

jkdihenkar avatar Aug 07 '23 06:08 jkdihenkar

Welcome @jkdihenkar!

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. :smiley:

k8s-ci-robot avatar Aug 07 '23 06:08 k8s-ci-robot

Hi @jkdihenkar. 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 avatar Aug 07 '23 06:08 k8s-ci-robot

/ok-to-test

jkdihenkar avatar Aug 07 '23 18:08 jkdihenkar

@jkdihenkar: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

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 avatar Aug 07 '23 18:08 k8s-ci-robot

@kishorj @M00nF1sh - can you check this once?

jkdihenkar avatar Aug 07 '23 18:08 jkdihenkar

/ok-to-test

johngmyers avatar Aug 09 '23 00:08 johngmyers

@johngmyers - tests have passed. can you please review and help this move ahead?

jkdihenkar avatar Aug 09 '23 19:08 jkdihenkar

/retest

kishorj avatar Aug 10 '23 13:08 kishorj

/lgtm

johngmyers avatar Aug 11 '23 04:08 johngmyers

/retest

johngmyers avatar Aug 11 '23 04:08 johngmyers

@jkdihenkar it might be necessary to rebase in order to get the e2e test to pass.

johngmyers avatar Aug 11 '23 04:08 johngmyers

/lgtm cancel

johngmyers avatar Aug 11 '23 04:08 johngmyers

/retest

jkdihenkar avatar Aug 24 '23 12:08 jkdihenkar

@johngmyers - can you please take a look now?

jkdihenkar avatar Aug 25 '23 05:08 jkdihenkar

/lgtm

johngmyers avatar Aug 29 '23 23:08 johngmyers

How do we get this merged into master?

jkdihenkar avatar Sep 03 '23 08:09 jkdihenkar

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jan 21 '24 09:01 k8s-triage-robot

Thanks for the contribution and sorry for the delay.

/lgtm /approve

oliviassss avatar Jan 24 '24 19:01 oliviassss

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkdihenkar, oliviassss

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 avatar Jan 24 '24 19:01 k8s-ci-robot

@jkdihenkar, can you please rebase the main branch to pick up the fix to e2e tests failure? I cannot merge without test passing. Thanks https://github.com/kubernetes-sigs/aws-load-balancer-controller/pull/3539

oliviassss avatar Jan 25 '24 21:01 oliviassss

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Feb 24 '24 22:02 k8s-triage-robot

New changes are detected. LGTM label has been removed.

k8s-ci-robot avatar Mar 01 '24 11:03 k8s-ci-robot

@oliviassss - can you take a look now?

jkdihenkar avatar Mar 13 '24 05:03 jkdihenkar

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Apr 12 '24 05:04 k8s-triage-robot

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

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 avatar Apr 12 '24 05:04 k8s-ci-robot