Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 331 for podspec_ (0.14 sec)

  1. pkg/controller/deployment/util/hash_test.go

    import (
    	"encoding/json"
    	"hash/adler32"
    	"strconv"
    	"strings"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/kubernetes/pkg/controller"
    	hashutil "k8s.io/kubernetes/pkg/util/hash"
    )
    
    var podSpec = `
    {
        "metadata": {
            "creationTimestamp": null,
            "labels": {
                "app": "cats"
            }
        },
        "spec": {
            "containers": [
                {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 28 19:00:40 UTC 2019
    - 4K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/util/util_test.go

    				},
    			},
    			expectedChanged:   true,
    			expectedAttempt:   2,
    			expectedSandboxID: "sandboxID2",
    		},
    		"Pod with ready sandbox status but network namespace mismatch": {
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					HostNetwork: true,
    				},
    			},
    			status: &kubecontainer.PodStatus{
    				SandboxStatuses: []*runtimeapi.PodSandboxStatus{
    					{
    						Id: "sandboxID1",
    						Linux: &runtimeapi.LinuxPodSandboxStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. plugin/pkg/admission/priority/admission_test.go

    				Namespace: "namespace",
    			},
    			Spec: api.PodSpec{
    				Containers: []api.Container{
    					{
    						Name: containerName,
    					},
    				},
    				PriorityClassName: "default1",
    			},
    		},
    		// pod[1]: Pod with no priority class
    		{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "pod-wo-priorityclass",
    				Namespace: "namespace",
    			},
    			Spec: api.PodSpec{
    				Containers: []api.Container{
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 03 18:43:48 UTC 2022
    - 21.2K bytes
    - Viewed (0)
  4. pkg/volume/emptydir/empty_dir_test.go

    		}
    
    		physicalMounter = mount.NewFakeMounter(nil)
    		mountDetector   = fakeMountDetector{}
    		pod             = &v1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				UID: types.UID("poduid"),
    			},
    			Spec: v1.PodSpec{
    				Containers: []v1.Container{
    					{
    						Resources: v1.ResourceRequirements{
    							Requests: v1.ResourceList{
    								v1.ResourceName("hugepages-2Mi"): resource.MustParse("100Mi"),
    							},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. pkg/apis/core/validation/validation_test.go

    	}
    
    	cases := map[string]struct {
    		podSpec     *core.PodSpec
    		expectErr   bool
    		errorType   field.ErrorType
    		errorDetail string
    	}{
    		"valid SC, linux, no error": {
    			podSpec:   &core.PodSpec{SecurityContext: validLinuxSC},
    			expectErr: false,
    		},
    		"invalid SC, linux, error": {
    			podSpec:     &core.PodSpec{SecurityContext: invalidLinuxSC},
    			errorType:   "FieldValueForbidden",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  6. pkg/scheduler/metrics/resources/resources_test.go

    					ObjectMeta: metav1.ObjectMeta{Namespace: "test", Name: "foo"},
    					Spec: v1.PodSpec{
    						InitContainers: []v1.Container{},
    						Containers:     []v1.Container{},
    					},
    				},
    			},
    		},
    		{
    			name: "request only",
    			pods: []*v1.Pod{
    				{
    					ObjectMeta: metav1.ObjectMeta{Namespace: "test", Name: "foo"},
    					Spec: v1.PodSpec{
    						Containers: []v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  7. pkg/volume/util/nested_volumes_test.go

    			err:      false,
    			expected: sets.New[string](),
    			volname:  "vol1",
    			pod: v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Namespace: testNamespace,
    					UID:       testPodUID,
    				},
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{
    							VolumeMounts: []v1.VolumeMount{
    								{MountPath: "/dir", Name: "vol1"},
    							},
    						},
    					},
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. pkg/securitycontext/util_test.go

    	}{
    		{
    			desc: "no securityContext in pod, no securityContext in container",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{},
    			},
    			container:     &v1.Container{},
    			wantRunAsUser: nil,
    		},
    		{
    			desc: "no runAsUser in pod, no runAsUser in container",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					SecurityContext: &v1.PodSecurityContext{},
    				},
    			},
    			container: &v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 05 01:25:23 UTC 2020
    - 5K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    					Name: "pod1",
    					UID:  "pod1uid",
    				},
    				Spec: v1.PodSpec{
    					Volumes: []v1.Volume{
    						{
    							Name:         "basic",
    							VolumeSource: v1.VolumeSource{},
    						},
    					},
    				},
    			},
    			&v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "pod2",
    					UID:  "pod2uid",
    				},
    				Spec: v1.PodSpec{
    					Volumes: []v1.Volume{
    						{
    							Name:         "basic",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  10. plugin/pkg/admission/serviceaccount/admission_test.go

    	}
    }
    
    func TestIgnoresMirrorPod(t *testing.T) {
    	pod := &api.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Annotations: map[string]string{
    				kubelet.ConfigMirrorAnnotationKey: "true",
    			},
    		},
    		Spec: api.PodSpec{
    			Volumes: []api.Volume{
    				{VolumeSource: api.VolumeSource{}},
    			},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top