Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for PodTemplate (0.14 sec)

  1. pkg/registry/core/podtemplate/strategy_test.go

    			},
    		},
    	}
    
    	Strategy.PrepareForCreate(ctx, podTemplate)
    	if podTemplate.Generation != 1 {
    		t.Errorf("expected Generation=1, got %d", podTemplate.Generation)
    	}
    	errs := Strategy.Validate(ctx, podTemplate)
    	if len(errs) != 0 {
    		t.Errorf("Unexpected error validating %v", errs)
    	}
    
    	// ensure we do not change generation for non-spec updates
    	updatedLabel := podTemplate.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. pkg/registry/core/podtemplate/storage/storage.go

    		NewFunc:                   func() runtime.Object { return &api.PodTemplate{} },
    		NewListFunc:               func() runtime.Object { return &api.PodTemplateList{} },
    		DefaultQualifiedResource:  api.Resource("podtemplates"),
    		SingularQualifiedResource: api.Resource("podtemplate"),
    
    		CreateStrategy: podtemplate.Strategy,
    		UpdateStrategy: podtemplate.Strategy,
    		DeleteStrategy: podtemplate.Strategy,
    
    		ReturnDeletedObject: true,
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. pkg/registry/core/podtemplate/strategy.go

    	template := obj.(*api.PodTemplate)
    	template.Generation = 1
    	pod.DropDisabledTemplateFields(&template.Template, nil)
    }
    
    // Validate validates a new pod template.
    func (podTemplateStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	template := obj.(*api.PodTemplate)
    	opts := pod.GetValidationOptionsFromPodTemplate(&template.Template, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  4. pkg/registry/core/podtemplate/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package podtemplate provides RESTStorage implementations for storing PodTemplate API objects.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 21 14:11:50 UTC 2016
    - 748 bytes
    - Viewed (0)
  5. pkg/registry/core/podtemplate/storage/storage_test.go

    	}
    	rest, err := NewREST(restOptions)
    	if err != nil {
    		t.Fatalf("unexpected error from REST storage: %v", err)
    	}
    	return rest, server
    }
    
    func validNewPodTemplate(name string) *api.PodTemplate {
    	return &api.PodTemplate{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			Namespace: metav1.NamespaceDefault,
    		},
    		Template: api.PodTemplateSpec{
    			ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 4.1K bytes
    - Viewed (0)
  6. pkg/apis/apps/validation/validation_test.go

    			Revision: revision,
    		}
    	}
    
    	podTemplate := api.PodTemplate{
    		Template: api.PodTemplateSpec{
    			Spec: api.PodSpec{
    				RestartPolicy: api.RestartPolicyAlways,
    				DNSPolicy:     api.DNSClusterFirst,
    			},
    			ObjectMeta: metav1.ObjectMeta{
    				Labels: map[string]string{"a": "b"},
    			},
    		},
    	}
    
    	ss := mkStatefulSet(&podTemplate)
    
    	var (
    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/registry/core/replicationcontroller/strategy_test.go

    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ReplicationController 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: Fri Dec 13 16:56:29 UTC 2019
    - 6.9K 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. api/discovery/api__v1.json

          "singularName": "",
          "verbs": [
            "get",
            "patch",
            "update"
          ]
        },
        {
          "kind": "PodTemplate",
          "name": "podtemplates",
          "namespaced": true,
          "singularName": "podtemplate",
          "storageVersionHash": "LIXB2x4IFpk=",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 15 18:18:19 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. pkg/apis/core/register.go

    	if err := scheme.AddIgnoredConversionType(&metav1.TypeMeta{}, &metav1.TypeMeta{}); err != nil {
    		return err
    	}
    	scheme.AddKnownTypes(SchemeGroupVersion,
    		&Pod{},
    		&PodList{},
    		&PodStatusResult{},
    		&PodTemplate{},
    		&PodTemplateList{},
    		&ReplicationControllerList{},
    		&ReplicationController{},
    		&ServiceList{},
    		&Service{},
    		&ServiceProxyOptions{},
    		&NodeList{},
    		&Node{},
    		&NodeProxyOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 13 11:36:48 UTC 2021
    - 2.7K bytes
    - Viewed (0)
Back to top