File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -524,12 +524,12 @@ func validatePathMatch(
524
524
}
525
525
526
526
if * path .Type != v1beta1 .PathMatchPathPrefix {
527
- valErr := field .NotSupported (fieldPath , * path .Type , []string {string (v1beta1 .PathMatchPathPrefix )})
527
+ valErr := field .NotSupported (fieldPath . Child ( "type" ) , * path .Type , []string {string (v1beta1 .PathMatchPathPrefix )})
528
528
allErrs = append (allErrs , valErr )
529
529
}
530
530
531
531
if err := validator .ValidatePathInPrefixMatch (* path .Value ); err != nil {
532
- valErr := field .Invalid (fieldPath , * path .Value , err .Error ())
532
+ valErr := field .Invalid (fieldPath . Child ( "value" ) , * path .Value , err .Error ())
533
533
allErrs = append (allErrs , valErr )
534
534
}
535
535
Original file line number Diff line number Diff line change @@ -520,7 +520,7 @@ func TestBuildRoute(t *testing.T) {
520
520
},
521
521
Conditions : []conditions.Condition {
522
522
conditions .NewRouteUnsupportedValue (
523
- `All rules are invalid: spec.rules[0].matches[0].path: Invalid value: "/invalid": invalid path` ,
523
+ `All rules are invalid: spec.rules[0].matches[0].path.value : Invalid value: "/invalid": invalid path` ,
524
524
),
525
525
},
526
526
Rules : []Rule {
@@ -581,7 +581,7 @@ func TestBuildRoute(t *testing.T) {
581
581
Conditions : []conditions.Condition {
582
582
conditions .NewTODO (
583
583
`Some rules are invalid: ` +
584
- `[spec.rules[0].matches[0].path: Invalid value: "/invalid": invalid path, ` +
584
+ `[spec.rules[0].matches[0].path.value : Invalid value: "/invalid": invalid path, ` +
585
585
`spec.rules[1].filters[0].requestRedirect.hostname: Invalid value: ` +
586
586
`"invalid.example.com": invalid hostname]` ,
587
587
),
You can’t perform that action at this time.
0 commit comments