Skip to content

TLSRoute SNI match inconsistency #566

@howardjohn

Description

@howardjohn

TLS route:

spec:
  rules:
  - matches:
    - snis: ["foo.com"]
    forwardTo:
    - serviceName: httpbin
      port: 443

HTTP route:

spec:
  hostnames: ["foo.com"]
  rules:
  - forwardTo:
    - serviceName: httpbin
      port: 80

The inconsistency here feels a bit odd when compared to HTTPRoute.

Would it make sense to make a hostnames field in TLSRoute and remove the snis field in matches? Then the specs above would be identical (both looking like the "HTTP Route")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions