Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,337 for corev1 (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. cni/pkg/plugin/plugin_test.go

    		eventURL,
    		ambientEnabled,
    		"mock",
    	)
    }
    
    func buildFakePodAndNSForClient() (*corev1.Pod, *corev1.Namespace) {
    	proxy := corev1.Container{Name: "mockContainer"}
    	app := corev1.Container{Name: "foo-init"}
    	fakePod := &corev1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Pod",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:        testPodName,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag_test.go

    							Labels: map[string]string{
    								label.IoIstioRev.Name: "revision",
    								IstioTagLabel:         "test",
    							},
    						},
    					},
    				},
    			},
    			namespaces: corev1.NamespaceList{
    				Items: []corev1.Namespace{
    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name:   "dependent",
    							Labels: map[string]string{label.IoIstioRev.Name: "test"},
    						},
    					},
    				},
    			},
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  7. 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)
  8. istioctl/pkg/completion/completion.go

    		}
    	}
    
    	return nsNameList, nil
    }
    
    func getNamespaces(ctx context.Context, client kube.CLIClient) ([]corev1.Namespace, error) {
    	nslist, err := client.Kube().CoreV1().Namespaces().List(ctx, metav1.ListOptions{})
    	if err != nil {
    		return []corev1.Namespace{}, err
    	}
    	return nslist.Items, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. 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)
  10. istioctl/pkg/util/ambient/util.go

    	if obj == nil {
    		return false
    	}
    	switch t := obj.(type) {
    	case *corev1.Pod:
    		return t.GetAnnotations()[constants.AmbientRedirection] == 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
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top