- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for InferPodInfoFromTypedResource (0.24 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/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/util/handlers/handlers_test.go
*corev1.Pod, int, error, ) { return attachPod(namespace), 1, nil } for _, tt := range tests { t.Run(strings.Split(tt.name, ".")[0], func(t *testing.T) { gotPodName, gotNamespace, err := InferPodInfoFromTypedResource(tt.name, "test", factory) assert.NoError(t, err) if gotPodName != tt.wantPodName || gotNamespace != tt.wantNamespace {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 09 18:17:49 UTC 2023 - 6.6K 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)