Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetExec (0.37 sec)

  1. pkg/kubelet/kubelet_pods.go

    	}
    	// TODO(tallclair): Pass a proper timeout value.
    	return kl.runner.RunInContainer(ctx, container.ID, cmd, 0)
    }
    
    // GetExec gets the URL the exec will be served from, or nil if the Kubelet will serve it.
    func (kl *Kubelet) GetExec(ctx context.Context, podFullName string, podUID types.UID, containerName string, cmd []string, streamOpts remotecommandserver.Options) (*url.URL, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods_test.go

    			fakeRuntime := &containertest.FakeStreamingRuntime{FakeRuntime: testKubelet.fakeRuntime}
    			kubelet.containerRuntime = fakeRuntime
    			kubelet.streamingRuntime = fakeRuntime
    
    			redirect, err := kubelet.GetExec(ctx, tc.podFullName, podUID, tc.container, tc.command, remotecommand.Options{})
    			if tc.expectError {
    				assert.Error(t, err, description)
    			} else {
    				assert.NoError(t, err, description)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
Back to top