- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IsZtunnelPod (0.06 sec)
-
istioctl/pkg/util/ambient/util.go
corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "istio.io/api/annotation" "istio.io/api/label" "istio.io/istio/pkg/config/constants" "istio.io/istio/pkg/kube" ) func IsZtunnelPod(client kube.CLIClient, podName, podNamespace string) bool { isZtunnel := strings.HasPrefix(podName, "ztunnel") if client == nil { return isZtunnel }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 1.8K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
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(), "Sync diff is not available for ztunnel pod %s.%s\n", podName, ns) return nil } var envoyDump []byte
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 6.2K bytes - Viewed (0) -
cni/pkg/nodeagent/informers.go
if ns == nil { log.Warnf("failed to find namespace %s for pod %s", pod.Namespace, pod.Name) } // Exclude ztunnels, and terminated daemonset pods // from the snapshot. if !util.IsZtunnelPod(s.systemNamespace, pod) && !kube.CheckPodTerminal(pod) && util.PodRedirectionActive(pod) { pods = append(pods, pod) } } return pods }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 11.7K bytes - Viewed (0) -
cni/pkg/util/podutil.go
} func podHasSidecar(pod *corev1.Pod) bool { if _, f := pod.GetAnnotations()[annotation.SidecarStatus.Name]; f { return true } return false } func IsZtunnelPod(systemNs string, pod *corev1.Pod) bool { return pod.Namespace == systemNs && pod.GetLabels()["app"] == "ztunnel" } func AnnotateEnrolledPod(client kubernetes.Interface, pod *metav1.ObjectMeta) error {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 4.7K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
var podNames []string var podNamespace string if len(args) == 1 { podName, ns, err := getComponentPodName(ctx, args[0]) if err != nil { return err } ztunnelPod := ambientutil.IsZtunnelPod(kubeClient, podName, ns) if !ztunnelPod { return fmt.Errorf("workloads command is only supported by Ztunnel proxies: %v", podName) } podNames = []string{podName} podNamespace = ns } else {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 19:17:45 UTC 2024 - 22.2K bytes - Viewed (0)