Skip to content

Commit ef756e8

Browse files
committed
Use BackendTLSPolicy name
1 parent 05bc535 commit ef756e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/controller/state/graph/backend_refs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func findBackendTLSPolicyForService(
420420
beTLSPolicy.IsReferenced = true
421421
if !beTLSPolicy.Valid {
422422
//nolint:staticcheck // Capitalization required for alignment with other messages.
423-
err = fmt.Errorf("The backend TLS policy is invalid: %s", beTLSPolicy.Conditions[0].Message)
423+
err = fmt.Errorf("The BackendTLSPolicy is invalid: %s", beTLSPolicy.Conditions[0].Message)
424424
} else {
425425
beTLSPolicy.Conditions = append(beTLSPolicy.Conditions, conditions.NewPolicyAccepted())
426426
}

internal/controller/state/graph/backend_refs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ func TestCreateBackend(t *testing.T) {
15731573
expectedServicePortReference: "",
15741574
expectedConditions: []conditions.Condition{
15751575
conditions.NewRouteBackendRefUnsupportedValue(
1576-
"The backend TLS policy is invalid: Unsupported value",
1576+
"The BackendTLSPolicy is invalid: Unsupported value",
15771577
),
15781578
},
15791579
name: "invalid policy",

0 commit comments

Comments
 (0)