Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for PodTemplateSpec (0.37 sec)

  1. pkg/api/pod/warnings_test.go

    	}
    	testcases := []struct {
    		name        string
    		template    *api.PodTemplateSpec
    		oldTemplate *api.PodTemplateSpec
    		expected    []string
    	}{
    		{
    			name:     "null",
    			template: nil,
    			expected: nil,
    		},
    		{
    			name: "photon",
    			template: &api.PodTemplateSpec{Spec: api.PodSpec{
    				Volumes: []api.Volume{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  2. pkg/apis/batch/v1/defaults_test.go

    	"k8s.io/utils/pointer"
    
    	. "k8s.io/kubernetes/pkg/apis/batch/v1"
    )
    
    func TestSetDefaultJob(t *testing.T) {
    	defaultLabels := map[string]string{"default": "default"}
    	validPodTemplateSpec := v1.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{Labels: defaultLabels},
    	}
    	tests := map[string]struct {
    		original                   *batchv1.Job
    		expected                   *batchv1.Job
    		expectLabels               bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. pkg/apis/apps/v1/conversion_test.go

    	selector := &metav1.LabelSelector{MatchLabels: map[string]string{"foo": "bar"}}
    	appsv1Template := v1.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    		Spec: v1.PodSpec{
    			RestartPolicy:   v1.RestartPolicy("bar"),
    			SecurityContext: new(v1.PodSecurityContext),
    		},
    	}
    	apiTemplate := api.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    		Spec: api.PodSpec{
    			RestartPolicy:   api.RestartPolicy("bar"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1beta2/conversion_test.go

    	selector := &metav1.LabelSelector{MatchLabels: map[string]string{"foo": "bar"}}
    	v1beta2Template := v1.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    		Spec: v1.PodSpec{
    			RestartPolicy:   v1.RestartPolicy("bar"),
    			SecurityContext: new(v1.PodSecurityContext),
    		},
    	}
    	apiTemplate := api.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    		Spec: api.PodSpec{
    			RestartPolicy:   api.RestartPolicy("bar"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  5. pkg/apis/extensions/v1beta1/defaults_test.go

    )
    
    func TestSetDefaultDaemonSetSpec(t *testing.T) {
    	defaultLabels := map[string]string{"foo": "bar"}
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    			RestartPolicy:                 v1.RestartPolicyAlways,
    			SecurityContext:               &v1.PodSecurityContext{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  6. pkg/apis/apps/validation/validation_test.go

    	invalidPodTemplate := api.PodTemplate{
    		Template: api.PodTemplateSpec{
    			Spec: api.PodSpec{
    				RestartPolicy: api.RestartPolicyAlways,
    				DNSPolicy:     api.DNSClusterFirst,
    			},
    			ObjectMeta: metav1.ObjectMeta{
    				Labels: invalidLabels,
    			},
    		},
    	}
    
    	invalidTime := int64(60)
    	invalidPodTemplate2 := api.PodTemplate{
    		Template: api.PodTemplateSpec{
    			ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  7. pkg/controller/daemon/util/daemonset_util_test.go

    	}
    	for _, test := range tests {
    		podTemplateSpec := v1.PodTemplateSpec{}
    		newPodTemplate := CreatePodTemplate(podTemplateSpec, test.templateGeneration, test.hash)
    		val, exists := newPodTemplate.ObjectMeta.Labels[extensions.DaemonSetTemplateGenerationKey]
    		if !exists || val != fmt.Sprint(*test.templateGeneration) {
    			t.Errorf("Expected podTemplateSpec to have generation label value: %d, got: %s", *test.templateGeneration, val)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. pkg/apis/apps/v1beta2/defaults_test.go

    					Template: v1.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    							Labels: map[string]string{
    								"foo": "bar",
    							},
    						},
    					},
    				},
    			},
    			expectReplicas: 1,
    		},
    		{
    			rs: appsv1beta2.ReplicaSet{
    				Spec: appsv1beta2.ReplicaSetSpec{
    					Replicas: ptr.To[int32](0),
    					Template: v1.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. pkg/registry/batch/job/strategy_test.go

    					Template: api.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    							Labels: batchLabels,
    						},
    						Spec: validPodSpec,
    					}},
    			},
    			wantJob: &batch.Job{
    				ObjectMeta: validObjectMeta,
    				Spec: batch.JobSpec{
    					Selector:       defaultSelector,
    					ManualSelector: ptr.To(false),
    					Template: api.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  10. pkg/apis/apps/v1/defaults_test.go

    				Spec: appsv1.ReplicaSetSpec{
    					Template: v1.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    							Labels: map[string]string{
    								"foo": "bar",
    							},
    						},
    					},
    				},
    			},
    			expectReplicas: 1,
    		},
    		{
    			rs: appsv1.ReplicaSet{
    				Spec: appsv1.ReplicaSetSpec{
    					Replicas: ptr.To[int32](0),
    					Template: v1.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top