Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,136 for corev2 (0.18 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    func V1DeepEqualSafePodSpec() corev1.PodSpec {
    	grace := int64(30)
    	return corev1.PodSpec{
    		RestartPolicy:                 corev1.RestartPolicyAlways,
    		DNSPolicy:                     corev1.DNSClusterFirst,
    		TerminationGracePeriodSeconds: &grace,
    		SecurityContext:               &corev1.PodSecurityContext{},
    	}
    }
    
    func V1DeepEqualSafePodStatus() corev1.PodStatus {
    	return corev1.PodStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  2. pkg/registry/core/service/portallocator/controller/repair_test.go

    			ObjectMeta: metav1.ObjectMeta{Namespace: "three", Name: "three"},
    			Spec: corev1.ServiceSpec{
    				Ports: []corev1.ServicePort{{NodePort: 201}},
    			},
    		},
    		&corev1.Service{ // empty, ignored
    			ObjectMeta: metav1.ObjectMeta{Namespace: "four", Name: "four"},
    			Spec: corev1.ServiceSpec{
    				Ports: []corev1.ServicePort{{}},
    			},
    		},
    		&corev1.Service{ // duplicate, dropped
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. pkg/registry/core/service/ipallocator/controller/repair_test.go

    			Spec: corev1.ServiceSpec{
    				ClusterIP:  "2000::1",
    				ClusterIPs: []string{"2000::1", "192.168.1.100"},
    				IPFamilies: []corev1.IPFamily{corev1.IPv6Protocol, corev1.IPv4Protocol},
    			},
    		},
    		&corev1.Service{
    			ObjectMeta: metav1.ObjectMeta{Namespace: "x3", Name: "two-6"},
    			Spec: corev1.ServiceSpec{
    				ClusterIP:  "2000::2",
    				ClusterIPs: []string{"2000::2"},
    				IPFamilies: []corev1.IPFamily{corev1.IPv6Protocol},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1/zz_generated.defaults.go

    	}
    	corev1.SetDefaults_ResourceList(&in.Spec.Template.Spec.Overhead)
    	for i := range in.Spec.VolumeClaimTemplates {
    		a := &in.Spec.VolumeClaimTemplates[i]
    		corev1.SetDefaults_PersistentVolumeClaim(a)
    		corev1.SetDefaults_PersistentVolumeClaimSpec(&a.Spec)
    		corev1.SetDefaults_ResourceList(&a.Spec.Resources.Limits)
    		corev1.SetDefaults_ResourceList(&a.Spec.Resources.Requests)
    		corev1.SetDefaults_ResourceList(&a.Status.Capacity)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 17:31:23 UTC 2021
    - 40.8K bytes
    - Viewed (0)
  5. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    		Status: corev1.PodStatus{
    			Conditions: []corev1.PodCondition{
    				{
    					Type:               corev1.PodReady,
    					Status:             corev1.ConditionTrue,
    					LastTransitionTime: metav1.Now(),
    				},
    			},
    			PodIP:  ip,
    			HostIP: ip,
    			PodIPs: []corev1.PodIP{
    				{
    					IP: ip,
    				},
    			},
    			Phase: corev1.PodRunning,
    		},
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. pkg/kube/kclient/index_test.go

    	c := kube.NewFakeClient()
    	pods := New[*corev1.Pod](c)
    	c.RunAndWait(test.NewStop(t))
    	var index *Index[string, *corev1.Pod]
    	adds := atomic.NewInt32(0)
    	index = CreateIndexWithDelegate[string, *corev1.Pod](pods, func(pod *corev1.Pod) []string {
    		return []string{pod.Spec.ServiceAccountName}
    	}, controllers.EventHandler[*corev1.Pod]{
    		AddFunc: func(obj *corev1.Pod) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 04 03:49:30 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. 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: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 04 03:08:06 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. pkg/kube/krt/collection_test.go

    	c := kube.NewFakeClient(
    		&corev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "pod",
    				Namespace: "namespace",
    				Labels:    map[string]string{"app": "foo"},
    			},
    			Status: corev1.PodStatus{PodIP: "1.2.3.4"},
    		},
    		&corev1.Service{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "svc",
    				Namespace: "namespace",
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. plugin/pkg/admission/runtimeclass/admission_test.go

    				Handler:    "bar",
    				Overhead: &nodev1.Overhead{
    					PodFixed: corev1.ResourceList{
    						corev1.ResourceName(corev1.ResourceCPU):    resource.MustParse("100m"),
    						corev1.ResourceName(corev1.ResourceMemory): resource.MustParse("1"),
    					},
    				},
    			},
    			pod:         newOverheadValidPod("no-resource-req-no-overhead", 1, core.ResourceRequirements{}, false),
    			expectError: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 17 01:30:14 UTC 2022
    - 17.5K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/server_test.go

    	"testing"
    	"time"
    
    	"github.com/stretchr/testify/mock"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/client-go/kubernetes/fake"
    
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestMeshDataplaneAddsAnnotationOnAdd(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top