File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func VirtualService(spec *VirtualServiceSpec) *kunstructured.Unstructured {
74
74
"match" : []map [string ]interface {}{
75
75
{
76
76
"uri" : map [string ]interface {}{
77
- "prefix " : urls .CanonicalizeEndpoint (spec .Path ),
77
+ "exact " : urls .CanonicalizeEndpoint (spec .Path ),
78
78
},
79
79
},
80
80
},
@@ -279,16 +279,16 @@ func GetVirtualServiceEndpoints(virtualService *kunstructured.Unstructured) (str
279
279
return nil , errors .New ("uri is not a map[string]interface{}" ) // unexpected
280
280
}
281
281
282
- prefixInferface , ok := uri ["prefix " ]
282
+ exactInferface , ok := uri ["exact " ]
283
283
if ! ok {
284
284
return strset .New ("/" ), nil
285
285
}
286
- prefix , ok := prefixInferface .(string )
286
+ exact , ok := exactInferface .(string )
287
287
if ! ok {
288
- return nil , errors .New ("prefix is not a string" ) // unexpected
288
+ return nil , errors .New ("url is not a string" ) // unexpected
289
289
}
290
290
291
- endpoints .Add (urls .CanonicalizeEndpoint (prefix ))
291
+ endpoints .Add (urls .CanonicalizeEndpoint (exact ))
292
292
}
293
293
}
294
294
You can’t perform that action at this time.
0 commit comments