Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for Routes (0.18 sec)

  1. istioctl/pkg/util/configdump/route.go

    		route := &route.RouteConfiguration{}
    		err = drc[i].RouteConfig.UnmarshalTo(route)
    		if err != nil {
    			return nil, err
    		}
    		sort.Slice(route.VirtualHosts, func(i, j int) bool {
    			return route.VirtualHosts[i].Name < route.VirtualHosts[j].Name
    		})
    		drc[i].RouteConfig = protoconv.MessageToAny(route)
    	}
    
    	if stripVersions {
    		for i := range drc {
    			drc[i].VersionInfo = ""
    			drc[i].LastUpdated = nil
    		}
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/compare/route.go

    		if err != nil {
    			return err
    		}
    		istiodBytes.WriteString(istiod)
    	}
    	diff := difflib.UnifiedDiff{
    		FromFile: "Istiod Routes",
    		A:        difflib.SplitLines(istiodBytes.String()),
    		ToFile:   "Envoy Routes",
    		B:        difflib.SplitLines(envoyBytes.String()),
    		Context:  c.context,
    	}
    	text, err := difflib.GetUnifiedDiffString(diff)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/testdata/routes/istio-gateway-http-route-prefix/configdump.json

     "configs": [
      {
       "@type": "type.googleapis.com/envoy.admin.v3.RoutesConfigDump",
       "static_route_configs": [
        {
         "route_config": {
          "@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
          "virtual_hosts": [
           {
            "name": "backend",
            "domains": [
             "*"
            ],
            "routes": [
             {
              "match": {
               "prefix": "/stats/prometheus"
              },
    Json
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/comparator_test.go

    		t.Fatalf("Failed to create Comparator: %v", err)
    	}
    	err = comparator.Diff()
    	if err != nil {
    		t.Errorf("Unexpected error during diff: %v", err)
    	}
    
    	expected := []string{"Clusters Match", "Listeners Match", "Routes Match"}
    	for _, exp := range expected {
    		if !bytes.Contains(outputBuffer.Bytes(), []byte(exp)) {
    			t.Errorf("Expected %s, but it was not found", exp)
    		}
    	}
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. cni/test/testdata/pre/bad_minikube_cni.conf

      "bridge": "mybridge",
      "mtu": 1460,
      "addIf": "true",
      "isGateway": true,
      "ipMasq": true,
      "ipam": {
        "type": "host-local",
        "subnet": "10.1.0.0/16",
        "gateway": "10.1.0.1",
        "routes": [
          {
            "dst": "0.0.0.0/0"
          }
        ]
      }
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Nov 19 23:19:19 GMT 2020
    - 295 bytes
    - Viewed (0)
  6. cni/pkg/plugin/plugin_test.go

            "ips": [
                {
                    "version": "4",
                    "address": "10.0.0.2/24",
                    "gateway": "10.0.0.1",
                    "interface": 0
                }
            ],
            "routes": []
    
        },
        "log_level": "debug",
        "cni_event_address": "%s",
        "ambient_enabled": %t,
        "kubernetes": {
            "k8s_api_root": "APIRoot",
            "kubeconfig": "testK8sConfig",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/route_test.go

    	}{
    		{
    			name: "empty-gateway",
    		},
    		{
    			name: "istio-gateway-http-route-prefix",
    		},
    		{
    			name: "k8s-gateway-http-route-path-prefix",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			gotOut := &bytes.Buffer{}
    			cw := &ConfigWriter{Stdout: gotOut}
    			cd, _ := os.ReadFile(fmt.Sprintf("testdata/routes/%s/configdump.json", tt.name))
    			if err := cw.Prime(cd); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/testdata/routes/k8s-gateway-http-route-path-prefix/configdump.json

     "configs": [
      {
       "@type": "type.googleapis.com/envoy.admin.v3.RoutesConfigDump",
       "static_route_configs": [
        {
         "route_config": {
          "@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
          "virtual_hosts": [
           {
            "name": "backend",
            "domains": [
             "*"
            ],
            "routes": [
             {
              "match": {
               "prefix": "/healthz/ready"
              },
    Json
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 3.1K bytes
    - Viewed (1)
  9. istioctl/pkg/writer/envoy/configdump/testdata/routes/empty-gateway/configdump.json

     "configs": [
      {
       "@type": "type.googleapis.com/envoy.admin.v3.RoutesConfigDump",
       "static_route_configs": [
        {
         "route_config": {
          "@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
          "virtual_hosts": [
           {
            "name": "backend",
            "domains": [
             "*"
            ],
            "routes": [
             {
              "match": {
               "prefix": "/healthz/ready"
              },
    Json
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  10. cni/pkg/repair/netns.go

    func getLinkWithDestinationOf(ip string) (netlink.Link, error) {
    	routes, err := netlink.RouteListFiltered(
    		netlink.FAMILY_V4,
    		&netlink.Route{Dst: &net.IPNet{IP: net.ParseIP(ip), Mask: net.CIDRMask(32, 32)}},
    		netlink.RT_FILTER_DST)
    	if err != nil {
    		return nil, err
    	}
    
    	if len(routes) == 0 {
    		return nil, fmt.Errorf("no routes found for %s", ip)
    	}
    
    	linkIndex := routes[0].LinkIndex
    	return netlink.LinkByIndex(linkIndex)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top