Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for PodTemplateSpec (0.33 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podtemplatespec.go

    // with apply.
    type PodTemplateSpecApplyConfiguration struct {
    	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
    	Spec                             *PodSpecApplyConfiguration `json:"spec,omitempty"`
    }
    
    // PodTemplateSpecApplyConfiguration constructs an declarative configuration of the PodTemplateSpec type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 17:59:55 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/controller/deployment/util/hash_test.go

    		spec := v1.PodTemplateSpec{}
    		json.Unmarshal([]byte(specJSON), &spec)
    		hash := controller.ComputeHash(&spec, nil)
    		if v, ok := seenHashes[hash]; ok {
    			t.Errorf("Hash collision, old: %d new: %d", v, i)
    			break
    		}
    		seenHashes[hash] = i
    	}
    }
    
    func BenchmarkAdler(b *testing.B) {
    	spec := v1.PodTemplateSpec{}
    	json.Unmarshal([]byte(podSpec), &spec)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 28 19:00:40 UTC 2019
    - 4K bytes
    - Viewed (0)
  7. 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)
  8. pkg/registry/apps/replicaset/strategy_test.go

    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ReplicaSet should not allow create on update")
    	}
    
    	validSelector := map[string]string{"a": "b"}
    	validPodTemplate := api.PodTemplate{
    		Template: api.PodTemplateSpec{
    			ObjectMeta: metav1.ObjectMeta{
    				Labels: validSelector,
    			},
    			Spec: api.PodSpec{
    				RestartPolicy: api.RestartPolicyAlways,
    				DNSPolicy:     api.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 21:04:31 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top