- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,276 for corev1 (0.07 sec)
-
istioctl/pkg/injector/injector-list.go
func getNamespaces(ctx context.Context, client kube.CLIClient, istioNamespace string) ([]corev1.Namespace, error) { nsList, err := client.Kube().CoreV1().Namespaces().List(ctx, metav1.ListOptions{}) if err != nil { return []corev1.Namespace{}, err } filtered := filterSystemNamespaces(nsList.Items, istioNamespace) filtered = slices.Filter(filtered, func(namespace corev1.Namespace) bool { return !ambient.InAmbient(&namespace) })
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Oct 18 11:39:52 UTC 2024 - 10.6K bytes - Viewed (0) -
cni/pkg/util/podutil.go
func PodRedirectionActive(pod *corev1.Pod) bool { return pod.GetAnnotations()[annotation.AmbientRedirection.Name] == constants.AmbientRedirectionEnabled } 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 {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 4.7K bytes - Viewed (0) -
cni/pkg/repair/repair_test_helpers.go
}, }, Containers: []corev1.Container{ { Name: "payload-container", }, }, }, Status: corev1.PodStatus{ InitContainerStatuses: []corev1.ContainerStatus{ *args.InitContainerStatus, }, ContainerStatuses: []corev1.ContainerStatus{ { Name: "payload-container", State: corev1.ContainerState{ Waiting: &corev1.ContainerStateWaiting{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 12 17:39:53 UTC 2023 - 4.7K bytes - Viewed (0) -
istioctl/pkg/util/ambient/util.go
func InAmbient(obj metav1.Object) bool { if obj == nil { return false } switch t := obj.(type) { case *corev1.Pod: return t.GetAnnotations()[annotation.AmbientRedirection.Name] == constants.AmbientRedirectionEnabled case *corev1.Namespace: if t.GetLabels()["istio-injection"] == "enabled" { return false } if v, ok := t.GetLabels()[label.IoIstioRev.Name]; ok && v != "" { return false }
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/describe/describe_test.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 30.8K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
func Test_extractRevisionFromPod(t *testing.T) { cases := []struct { name string pod *corev1.Pod expectedRevision string }{ { name: "no rev", pod: &corev1.Pod{}, expectedRevision: "", }, { name: "has rev annotation", pod: &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Annotations: map[string]string{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 5.5K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
}, }, }, StartupProbe: &corev1.Probe{ ProbeHandler: corev1.ProbeHandler{ HTTPGet: &corev1.HTTPGetAction{ Port: intstr.FromInt(7777), }, }, }, } containers := []corev1.Container{app1} var podStatus corev1.PodStatus if v6IP { podStatus = corev1.PodStatus{ PodIP: "e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jul 25 16:13:38 UTC 2024 - 10.7K bytes - Viewed (0) -
cni/pkg/util/podutil_test.go
Spec: corev1.PodSpec{ NodeName: "derp", }, Status: corev1.PodStatus{ PodIP: "11.1.1.12", }, } podIPs := GetPodIPsIfPresent(pod) assert.Equal(t, len(podIPs), 1) } func TestGetPodIPsIfPodIPPresent(t *testing.T) { pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "test", }, Spec: corev1.PodSpec{ NodeName: "derp", }, Status: corev1.PodStatus{
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 4.9K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
ctx, cancel := context.WithCancel(context.Background()) defer cancel() pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "pod-bingo", Namespace: "funkyns", }, Spec: corev1.PodSpec{ NodeName: NodeName, }, Status: corev1.PodStatus{ PodIP: fakePodIP, }, } ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}} client := kube.NewFakeClient(ns, pod)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
cni/pkg/repair/repair_test.go
makeDetectPod := func(name string, terminationMessage string, exitCode int) *corev1.Pod { return makePod(makePodArgs{ PodName: name, Annotations: map[string]string{"sidecar.istio.io/status": "something"}, InitContainerStatus: &corev1.ContainerStatus{ Name: constants.ValidationContainerName, State: corev1.ContainerState{ Waiting: &corev1.ContainerStateWaiting{ Reason: "CrashLoopBackOff",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 10.6K bytes - Viewed (0)