Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getIstioVirtualServicePathForSvcFromRoute (0.57 sec)

  1. 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))
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  2. 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)
    			}
    		})
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top