- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NewPortForwarder (0.16 sec)
-
istioctl/pkg/cli/mock_client.go
type MockClient struct { // Results is a map of podName to the results of the expected test on the pod Results map[string][]byte kube.CLIClient } func (c MockClient) NewPortForwarder(_, _, _ string, _, _ int) (kube.PortForwarder, error) { return MockPortForwarder{}, nil } func (c MockClient) AllDiscoveryDo(_ context.Context, _, _ string) (map[string][]byte, error) { return c.Results, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Mar 08 08:38:19 UTC 2024 - 2.1K bytes - Viewed (0) -
istioctl/pkg/multixds/gather.go
} dialOpts, err := xds.DialOptions(xdsOpts, istioNamespace, tokenServiceAccount, kubeClient) if err != nil { return nil, err } for _, pod := range pods { fw, err := kubeClient.NewPortForwarder(pod.Name, pod.Namespace, "localhost", 0, centralOpts.XdsPodPort) if err != nil { return nil, err } err = fw.Start() if err != nil { return nil, err } defer fw.Close()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 13.6K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
podName = pl.Items[0].Name ns = pl.Items[0].Namespace } else if len(args) == 1 { podName, ns = args[0], ctx.IstioNamespace() } portForwarder, err := client.NewPortForwarder(podName, ns, "", 0, controlzPort) if err != nil { return fmt.Errorf("could not build port forwarder for ControlZ %s: %v", podName, err) } defer portForwarder.Close() err = portForwarder.Start()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 13.5K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics.go
} if len(pl.Items) < 1 { return errors.New("no Prometheus pods found") } // only use the first pod in the list promPod := pl.Items[0] fw, err := client.NewPortForwarder(promPod.Name, ctx.IstioNamespace(), "", 0, 9090) if err != nil { return fmt.Errorf("could not build port forwarder for prometheus: %v", err) } if err = fw.Start(); err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 8.4K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 21K bytes - Viewed (0) -
istioctl/pkg/dashboard/dashboard.go
portPrefs = []int{listenPort} } else { portPrefs = []int{remotePort, 0} } var err error for _, localPort := range portPrefs { var fw kube.PortForwarder fw, err = client.NewPortForwarder(podName, namespace, localAddress, localPort, remotePort) if err != nil { return fmt.Errorf("could not build port forwarder for %s: %v", flavor, err) } if err = fw.Start(); err != nil { fw.Close()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 20.5K bytes - Viewed (0)