- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for InferPodInfoFromTypedResource (0.18 sec)
-
istioctl/pkg/cli/context.go
CLIClient() (kube.CLIClient, error) // CLIClientWithRevision returns a client for the given revision CLIClientWithRevision(rev string) (kube.CLIClient, error) // InferPodInfoFromTypedResource returns the pod name and namespace for the given typed resource InferPodInfoFromTypedResource(name, namespace string) (pod string, ns string, err error) // InferPodsFromTypedResource returns the pod names and namespace for the given typed resource
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 23 19:31:32 UTC 2024 - 8.9K bytes - Viewed (0) -
istioctl/pkg/util/handlers/handlers.go
sortBy func([]*corev1.Pod) sort.Interface) (*corev1.Pod, int, error) // InferPodInfoFromTypedResource gets a pod name, from an expression like Deployment/httpbin, or Deployment/productpage-v1.bookinfo func InferPodInfoFromTypedResource(name, defaultNS string, factory cmdutil.Factory) (string, string, error) { resname, ns := inferNsInfo(name, defaultNS)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 6.3K bytes - Viewed (0) -
istioctl/pkg/dashboard/dashboard.go
} // only use the first pod in the list podName = pl.Items[0].Name ns = pl.Items[0].Namespace } else { podName, ns, err = ctx.InferPodInfoFromTypedResource(args[0], ctx.NamespaceOrDefault(ctx.Namespace())) if err != nil { return err } } return portForward(podName, ns, fmt.Sprintf("Envoy sidecar %s", podName),
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 20.5K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
kubeClient, err := ctx.CLIClient() if err != nil { return err } var podName, podNs string var podLabels, nsLabels map[string]string if len(args) == 1 { podName, podNs, err = ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace()) if err != nil { return err } pod, err := kubeClient.Kube().CoreV1().Pods(podNs).Get(context.TODO(), podName, metav1.GetOptions{}) if err != nil { return err
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
if err != nil { return err } multiXdsOpts.MessageWriter = c.OutOrStdout() if len(args) > 0 { podName, ns, err := ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace()) if err != nil { return err } if ambient.IsZtunnelPod(kubeClient, podName, ns) { _, _ = fmt.Fprintf(c.OutOrStdout(),
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 6.2K bytes - Viewed (0) -
istioctl/pkg/authz/authz.go
if err != nil { return fmt.Errorf("failed to get config dump from file %s: %s", configDumpFile, err) } } else if len(args) == 1 { podName, podNamespace, err := ctx.InferPodInfoFromTypedResource(args[0], ctx.Namespace()) if err != nil { return err } configDump, err = getConfigDumpFromPod(kubeClient, podName, podNamespace) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 5K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
} func getPodNameWithNamespace(ctx cli.Context, podflag, ns string) (string, string, error) { var podName, podNamespace string podName, podNamespace, err := ctx.InferPodInfoFromTypedResource(podflag, ns) if err != nil { return "", "", err } return podName, podNamespace, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 19:17:45 UTC 2024 - 22.2K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
} func getPodNameWithNamespace(ctx cli.Context, podflag, ns string) (string, string, error) { var podName, podNamespace string podName, podNamespace, err := ctx.InferPodInfoFromTypedResource(podflag, ns) if err != nil { return "", "", err } return podName, podNamespace, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0)