Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

catalog/ingress: check backend's port in addition to name #4202

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

shashankram
Copy link
Member

Description:
Checks that the IngressBackend's port matches the TargetPort
of the service. This is important in deployments where there
are multiple MeshServices with the same name, in which case
the IngressBackend configuration corresponding to the service
name and port must be used. Multiple MeshService objects with
the same name and different port number will exist when there
is a k8s service with multiple ports per service.

Without this change, IngressBackend configuration for a service
with multiple ports can result in conflicts where duplicate
configs are generated per MeshService.

Testing done:
Tested IngressBackend with multiple port per service.

Affected area:

Functional Area
Ingress [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

Checks that the IngressBackend's port matches the TargetPort
of the service. This is important in deployments where there
are multiple MeshServices with the same name, in which case
the IngressBackend configuration corresponding to the service
name and port must be used. Multiple MeshService objects with
the same name and different port number will exist when there
is a k8s service with multiple ports per service.

Without this change, IngressBackend configuration for a service
with multiple ports can result in conflicts where duplicate
configs are generated per MeshService.

Signed-off-by: Shashank Ram <[email protected]>
@shashankram shashankram added the backport-to/release=v0.11 Backport to release v0.11 label Sep 30, 2021
@shashankram shashankram requested a review from a team as a code owner September 30, 2021 23:46
@shashankram shashankram merged commit 37c3d65 into openservicemesh:main Oct 1, 2021
@shashankram shashankram deleted the multiport-ingress branch October 1, 2021 01:30
shashankram added a commit to shashankram/osm that referenced this pull request Oct 1, 2021
…emesh#4202)

Checks that the IngressBackend's port matches the TargetPort
of the service. This is important in deployments where there
are multiple MeshServices with the same name, in which case
the IngressBackend configuration corresponding to the service
name and port must be used. Multiple MeshService objects with
the same name and different port number will exist when there
is a k8s service with multiple ports per service.

Without this change, IngressBackend configuration for a service
with multiple ports can result in conflicts where duplicate
configs are generated per MeshService.

Signed-off-by: Shashank Ram <[email protected]>
shashankram added a commit that referenced this pull request Oct 1, 2021
[backport] catalog/ingress: check backend's port in addition to name (#4202)
@shashankram
Copy link
Member Author

Backport to v0.11 is done.

@shashankram shashankram removed the backport-to/release=v0.11 Backport to release v0.11 label Oct 6, 2021
snehachhabria pushed a commit to snehachhabria/osm that referenced this pull request Oct 14, 2021
…emesh#4202)

Checks that the IngressBackend's port matches the TargetPort
of the service. This is important in deployments where there
are multiple MeshServices with the same name, in which case
the IngressBackend configuration corresponding to the service
name and port must be used. Multiple MeshService objects with
the same name and different port number will exist when there
is a k8s service with multiple ports per service.

Without this change, IngressBackend configuration for a service
with multiple ports can result in conflicts where duplicate
configs are generated per MeshService.

Signed-off-by: Shashank Ram <[email protected]>
Signed-off-by: Sneha Chhabria <[email protected]>
allenlsy pushed a commit to allenlsy/osm that referenced this pull request Dec 28, 2021
…emesh#4202)

Checks that the IngressBackend's port matches the TargetPort
of the service. This is important in deployments where there
are multiple MeshServices with the same name, in which case
the IngressBackend configuration corresponding to the service
name and port must be used. Multiple MeshService objects with
the same name and different port number will exist when there
is a k8s service with multiple ports per service.

Without this change, IngressBackend configuration for a service
with multiple ports can result in conflicts where duplicate
configs are generated per MeshService.

Signed-off-by: Shashank Ram <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants