Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for portForwardRequest (0.2 sec)

  1. pkg/kube/client.go

    	return c.portForwardRequest(ctx, podName, podNamespace, method, path, 15000)
    }
    
    func (c *client) EnvoyDoWithPort(ctx context.Context, podName, podNamespace, method, path string, port int) ([]byte, error) {
    	return c.portForwardRequest(ctx, podName, podNamespace, method, path, port)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  2. pkg/test/kube/dump.go

    		if err = fw.Start(); err != nil {
    			return err
    		}
    		return nil
    	}, retry.MaxAttempts(5), retry.Delay(time.Millisecond*10))
    	return fw, err
    }
    
    var dumpClient = &http.Client{}
    
    func portForwardRequest(fw kube.PortForwarder, method, path string) ([]byte, error) {
    	req, err := http.NewRequest(method, fmt.Sprintf("http://%s/%s", fw.Address(), path), nil)
    	if err != nil {
    		return nil, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/instrumented_services.go

    	out, err := in.service.ListPodSandboxStats(ctx, filter)
    	recordError(operation, err)
    	return out, err
    }
    
    func (in instrumentedRuntimeService) PortForward(ctx context.Context, req *runtimeapi.PortForwardRequest) (*runtimeapi.PortForwardResponse, error) {
    	const operation = "port_forward"
    	defer recordOperation(operation, time.Now())
    
    	resp, err := in.service.PortForward(ctx, req)
    	recordError(operation, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    	}
    	if len(sandboxIDs) == 0 {
    		return nil, fmt.Errorf("failed to find sandboxID for pod %s", format.PodDesc(podName, podNamespace, podUID))
    	}
    	req := &runtimeapi.PortForwardRequest{
    		PodSandboxId: sandboxIDs[0],
    		Port:         ports,
    	}
    	resp, err := m.runtimeService.PortForward(ctx, req)
    	if err != nil {
    		return nil, err
    	}
    	return url.Parse(resp.Url)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. pkg/kubelet/server/server_test.go

    	if fk.getPortForwardCheck != nil {
    		fk.getPortForwardCheck(podName, podNamespace, podUID, portForwardOpts)
    	}
    	// Always use testPodSandboxID
    	resp, err := fk.streamingRuntime.GetPortForward(&runtimeapi.PortForwardRequest{
    		PodSandboxId: testPodSandboxID,
    		Port:         portForwardOpts.Ports,
    	})
    	if err != nil {
    		return nil, err
    	}
    	return url.Parse(resp.GetUrl())
    }
    
    // Unused functions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top