Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EnvoyDo (2.02 sec)

  1. istioctl/pkg/cli/mock_client.go

    	return MockPortForwarder{}, nil
    }
    
    func (c MockClient) AllDiscoveryDo(_ context.Context, _, _ string) (map[string][]byte, error) {
    	return c.Results, nil
    }
    
    func (c MockClient) EnvoyDo(ctx context.Context, podName, podNamespace, method, path string) ([]byte, error) {
    	results, ok := c.Results[podName]
    	if !ok {
    		return nil, fmt.Errorf("unable to retrieve Pod: pods %q not found", podName)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus.go

    					return nil
    				}
    				var envoyDump []byte
    				if configDumpFile != "" {
    					envoyDump, err = readConfigFile(configDumpFile)
    				} else {
    					path := "config_dump"
    					envoyDump, err = kubeClient.EnvoyDo(context.TODO(), podName, ns, "GET", path)
    				}
    				if err != nil {
    					return fmt.Errorf("could not contact sidecar: %w", err)
    				}
    
    				xdsRequest := discovery.DiscoveryRequest{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. istioctl/pkg/authz/authz.go

    		return nil, fmt.Errorf("failed to get pod: %s", err)
    	}
    	if len(pods) != 1 {
    		return nil, fmt.Errorf("expecting only 1 pod for %s.%s, found: %d", podName, podNamespace, len(pods))
    	}
    
    	data, err := kubeClient.EnvoyDo(context.TODO(), podName, podNamespace, "GET", "config_dump")
    	if err != nil {
    		return nil, fmt.Errorf("failed to get proxy config for %s.%s: %s", podName, podNamespace, err)
    	}
    	envoyConfig := &configdump.Wrapper{}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe.go

    	recordDestinationRules := map[string]*clientnetworking.DestinationRule{}
    	// recordGateways, key: ns/gwName
    	recordGateways := map[string]bool{}
    
    	for _, pod := range pods.Items {
    		byConfigDump, err := client.EnvoyDo(context.TODO(), pod.Name, pod.Namespace, "GET", "config_dump")
    		if err != nil {
    			return fmt.Errorf("failed to execute command on ingress gateway sidecar: %v", err)
    		}
    		cd := configdump.Wrapper{}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
Back to top