Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for CoreV1 (0.24 sec)

  1. 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{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri May 12 17:39:53 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  2. cni/pkg/util/podutil_test.go

    package util
    
    import (
    	"testing"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestGetPodIPIfPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "derp",
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/informers.go

    type K8sHandlers interface {
    	GetPodIfAmbient(podName, podNamespace string) (*corev1.Pod, error)
    	GetAmbientPods() []*corev1.Pod
    	Start()
    }
    
    type InformerHandlers struct {
    	ctx             context.Context
    	dataplane       MeshDataplane
    	systemNamespace string
    
    	queue      controllers.Queue
    	pods       kclient.Client[*corev1.Pod]
    	namespaces kclient.Client[*corev1.Namespace]
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe_test.go

    							{
    								Name:       "http",
    								Port:       80,
    								TargetPort: intstr.FromInt32(80),
    								Protocol:   corev1.ProtocolTCP,
    							},
    						},
    					},
    					Status: corev1.ServiceStatus{
    						LoadBalancer: corev1.LoadBalancerStatus{Ingress: []corev1.LoadBalancerIngress{
    							{
    								IP: "2.2.2.2",
    							},
    						}},
    					},
    				},
    				&corev1.Service{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  5. cni/pkg/repair/repaircontroller.go

    		UID:             &pod.UID,
    		ResourceVersion: &pod.ResourceVersion,
    	}
    	err := c.client.Kube().CoreV1().Pods(pod.Namespace).Delete(context.Background(), pod.Name, metav1.DeleteOptions{
    		Preconditions: preconditions,
    	})
    	if err != nil {
    		c.events.Write(pod, corev1.EventTypeWarning, ReasonDeleteBrokenPod, "pod detected as broken, but failed to delete: %v", err)
    		m.With(resultLabel.Value(resultFail)).Increment()
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  6. 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",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin_dryrun_test.go

    	if err != nil {
    		t.Fatalf("failed with error: %v", err)
    	}
    }
    
    func buildFakeDryRunPod() *corev1.Pod {
    	app := corev1.Container{Name: "test"}
    	proxy := corev1.Container{Name: "istio-proxy"}
    	validate := corev1.Container{Name: "istio-validate"}
    	fakePod := &corev1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Pod",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/informers_test.go

    	defer cancel()
    
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIPs: []corev1.PodIP{
    				{
    					IP: "11.1.1.12",
    				},
    			},
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. cni/pkg/util/podutil.go

    // PodRedirectionEnabled determines if a pod should or should not be configured
    // to have traffic redirected thru the node proxy.
    func PodRedirectionEnabled(namespace *corev1.Namespace, pod *corev1.Pod) bool {
    	if namespace.GetLabels()[constants.DataplaneMode] != constants.DataplaneModeAmbient {
    		// Namespace does not have ambient mode enabled
    		return false
    	}
    	if podHasSidecar(pod) {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net_test.go

    	}
    }
    
    func buildConvincingPod() *corev1.Pod {
    	app1 := corev1.Container{
    		Name: "app1",
    		Ports: []corev1.ContainerPort{
    			{
    				Name:          "foo-port",
    				ContainerPort: 8010,
    			},
    			{
    				Name:          "foo-2-port",
    				ContainerPort: 8020,
    			},
    		},
    		LivenessProbe: &corev1.Probe{
    			ProbeHandler: corev1.ProbeHandler{
    				HTTPGet: &corev1.HTTPGetAction{
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 14.3K bytes
    - Viewed (0)
Back to top