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

Backport of NET-4638: when multiple listeners have the same port, only add to K8s Service once into release/1.2.x #2554

Conversation

hc-github-team-consul-core

Backport

This PR is auto-generated from #2413 to be assessed for backporting due to the inclusion of the label backport/1.2.x.

The below text is copied from the body of the original PR.


Changes proposed in this PR:
A valid Gateway can have multiple listeners with the same port. When this happens, we loop through the listeners and add each listener's port to the list of ports for the corresponding Kubernetes Service, resulting in an invalid resource that can't be created.

This change just tracks which ports have already been added so that we only add each port once.

How I've tested this PR:
🤖 tests pass

How I expect reviewers to test this PR:
🤖 tests pass

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/NET-4638-duplicate-listener-ports/personally-many-reptile branch from 4200559 to bebd966 Compare July 11, 2023 21:53
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/NET-4638-duplicate-listener-ports/personally-many-reptile branch from 7107063 to 2aa9fac Compare July 11, 2023 21:53
@nathancoleman nathancoleman force-pushed the backport/NET-4638-duplicate-listener-ports/personally-many-reptile branch from 2aa9fac to 76a6e44 Compare July 12, 2023 16:16
@hc-github-team-consul-core hc-github-team-consul-core merged commit 4f6f261 into release/1.2.x Jul 12, 2023
3 checks passed
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/NET-4638-duplicate-listener-ports/personally-many-reptile branch July 12, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants