Skip to content

Commit 036bea5

Browse files
author
Kate Osborn
committed
Use incompatible
1 parent 8e60f67 commit 036bea5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/state/graph/gateway_listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func createPortConflictResolver() listenerConflictResolver {
340340
portProtocolOwner := make(map[v1beta1.PortNumber]v1beta1.ProtocolType)
341341
listenersByPort := make(map[v1beta1.PortNumber][]*Listener)
342342

343-
format := "Multiple listeners for the same port %d specify different protocols; " +
343+
format := "Multiple listeners for the same port %d specify incompatible protocols; " +
344344
"ensure only one protocol per port"
345345

346346
return func(l *Listener) {

internal/state/graph/gateway_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ func TestBuildGateway(t *testing.T) {
253253
"with an alphanumeric character (e.g. 'example.com', regex used for validation is " +
254254
`'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')`
255255

256-
conflict80PortMsg = "Multiple listeners for the same port 80 specify different protocols; " +
256+
conflict80PortMsg = "Multiple listeners for the same port 80 specify incompatible protocols; " +
257257
"ensure only one protocol per port"
258258

259-
conflict443PortMsg = "Multiple listeners for the same port 443 specify different protocols; " +
259+
conflict443PortMsg = "Multiple listeners for the same port 443 specify incompatible protocols; " +
260260
"ensure only one protocol per port"
261261

262262
secretPath = "/etc/nginx/secrets/test_secret"

0 commit comments

Comments
 (0)