Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for PodTemplate (0.19 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/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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/api/core/v1/register.go

    )
    
    // Adds the list of known types to the given scheme.
    func addKnownTypes(scheme *runtime.Scheme) error {
    	scheme.AddKnownTypes(SchemeGroupVersion,
    		&Pod{},
    		&PodList{},
    		&PodStatusResult{},
    		&PodTemplate{},
    		&PodTemplateList{},
    		&ReplicationController{},
    		&ReplicationControllerList{},
    		&Service{},
    		&ServiceProxyOptions{},
    		&ServiceList{},
    		&Endpoints{},
    		&EndpointsList{},
    		&Node{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 13 11:36:48 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  10. pkg/controller/deployment/rollback.go

    			logger.V(4).Info("Found replica set with desired revision", "replicaSet", klog.KObj(rs), "revision", v)
    			// rollback by copying podTemplate.Spec from the replica set
    			// revision number will be incremented during the next getAllReplicaSetsAndSyncRevision call
    			// no-op if the spec matches current deployment's podTemplate.Spec
    			performedRollback, err := dc.rollbackToTemplate(ctx, d, rs)
    			if performedRollback && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top