Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for PortForward (0.19 sec)

  1. pkg/kube/portforwarder.go

    	fw, err := portforward.NewOnAddresses(dialer,
    		[]string{f.localAddress},
    		[]string{fmt.Sprintf("%d:%d", f.localPort, f.podPort)},
    		f.stopCh,
    		readyCh,
    		io.Discard,
    		os.Stderr)
    	if err != nil {
    		return nil, fmt.Errorf("failed establishing port-forward: %v", err)
    	}
    
    	// Run the same check as k8s.io/kubectl/pkg/cmd/portforward/portforward.go
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/portforward/constants.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package portforward
    
    const (
    	PortForwardV1Name                    = "portforward.k8s.io"
    	WebsocketsSPDYTunnelingPrefix        = "SPDY/3.1+"
    	KubernetesSuffix                     = ".k8s.io"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 855 bytes
    - Viewed (0)
  3. pkg/client/tests/portfoward_test.go

    	"testing"
    	"time"
    
    	"k8s.io/apimachinery/pkg/types"
    	restclient "k8s.io/client-go/rest"
    	. "k8s.io/client-go/tools/portforward"
    	"k8s.io/client-go/transport/spdy"
    	"k8s.io/kubelet/pkg/cri/streaming/portforward"
    )
    
    // fakePortForwarder simulates port forwarding for testing. It implements
    // portforward.PortForwarder.
    type fakePortForwarder struct {
    	lock sync.Mutex
    	// stores data expected from the stream per port
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. pkg/kubelet/server/server_websocket_test.go

    				}
    
    				return nil
    			}
    
    			var url string
    			if test.uid {
    				url = fmt.Sprintf("ws://%s/portForward/%s/%s/%s?port=%s", fw.testHTTPServer.Listener.Addr().String(), podNamespace, podName, testUID, test.port)
    			} else {
    				url = fmt.Sprintf("ws://%s/portForward/%s/%s?port=%s", fw.testHTTPServer.Listener.Addr().String(), podNamespace, podName, test.port)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go

    	"k8s.io/apimachinery/pkg/util/httpstream"
    	"k8s.io/apimachinery/pkg/util/httpstream/spdy"
    	constants "k8s.io/apimachinery/pkg/util/portforward"
    	"k8s.io/apimachinery/pkg/util/proxy"
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/apiserver/pkg/registry/rest"
    	restconfig "k8s.io/client-go/rest"
    	"k8s.io/client-go/tools/portforward"
    )
    
    func TestTunnelingHandler_UpgradeStreamingAndTunneling(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 02:21:50 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  6. istioctl/pkg/dashboard/dashboard.go

    			if err != nil {
    				return err
    			}
    			return portForward(name, namespace, "SkyWalking",
    				"http://%s", bindAddress, skywalkingPort, client, cmd.OutOrStdout(), browser)
    		},
    	}
    
    	return cmd
    }
    
    // portForward first tries to forward localhost:remotePort to podName:remotePort, falls back to dynamic local port
    func portForward(podName, namespace, flavor, urlFormat, localAddress string, remotePort int,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  7. pkg/kubelet/server/server_test.go

    		"pods":                            {url: "/pods/", bucket: "pods"},
    		"portForward":                     {url: "/portForward/podNamespace/podID", bucket: "portForward"},
    		"portForward with uid":            {url: "/portForward/podNamespace/podID/uid", bucket: "portForward"},
    		"run":                             {url: "/run/podNamespace/podID/containerName", bucket: "run"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  8. pkg/registry/core/pod/rest/subresources.go

    }
    
    // NewConnectOptions returns the versioned object that represents the
    // portforward parameters
    func (r *PortForwardREST) NewConnectOptions() (runtime.Object, bool, string) {
    	return &api.PodPortForwardOptions{}, false, ""
    }
    
    // ConnectMethods returns the methods supported by portforward
    func (r *PortForwardREST) ConnectMethods() []string {
    	return upgradeableMethods
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. pkg/kubelet/server/auth_test.go

    		"/metrics/probes":                     "metrics",
    		"/metrics/resource":                   "metrics",
    		"/pods/":                              "proxy",
    		"/portForward/{podNamespace}/{podID}": "proxy",
    		"/portForward/{podNamespace}/{podID}/{uid}":         "proxy",
    		"/run/{podNamespace}/{podID}/{containerName}":       "proxy",
    		"/run/{podNamespace}/{podID}/{uid}/{containerName}": "proxy",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. operator/cmd/mesh/testdata/operator/output/operator-dump.json

                    "configmaps",
                    "endpoints",
                    "events",
                    "namespaces",
                    "pods",
                    "pods/proxy",
                    "pods/portforward",
                    "persistentvolumeclaims",
                    "secrets",
                    "services",
                    "serviceaccounts",
                    "resourcequotas"
                ],
                "verbs": [
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 10 01:35:08 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top