- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getIstioVirtualServicePathForSvcFromRoute (0.2 sec)
-
istioctl/pkg/describe/describe.go
if ss == nil { return "", "", fmt.Errorf("not a VS path: %s", path) } return ss[3], ss[2], nil } // getIstioVirtualServicePathForSvcFromRoute returns something like "/apis/networking/v1alpha3/namespaces/default/virtual-service/reviews" func getIstioVirtualServicePathForSvcFromRoute(cd *configdump.Wrapper, svc corev1.Service, port int32) (string, error) { sPort := strconv.Itoa(int(port))
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
istioctl/pkg/describe/describe_test.go
ic := util.ReadFile(t, test.inputConfig) cd := configdump.Wrapper{} err := cd.UnmarshalJSON(ic) if err != nil { t.Fatal(err) } out, err := getIstioVirtualServicePathForSvcFromRoute(&cd, test.inputService, test.inputPort) if err != nil { t.Fatal(err) } if diff := cmp.Diff(test.expected, out); diff != "" { t.Fatalf("Diff:\n%s", diff) } })
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 30.8K bytes - Viewed (0)