Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 112 for PrepareForUpdate (0.34 sec)

  1. pkg/registry/storage/volumeattributesclass/strategy.go

    }
    
    func (volumeAttributesClassStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate sets the Status fields which is not allowed to be set by an end user updating a PV
    func (volumeAttributesClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. pkg/registry/coordination/lease/strategy.go

    	return true
    }
    
    // PrepareForCreate prepares Lease for creation.
    func (leaseStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (leaseStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    // Validate validates a new Lease.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  3. pkg/registry/storage/csinode/strategy.go

    func (csiNodeStrategy) Canonicalize(obj runtime.Object) {
    }
    
    func (csiNodeStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate sets the driver's Allocatable fields that are not allowed to be set by an end user updating a CSINode.
    func (csiNodeStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (csiNodeStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 26 00:30:42 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolumeclaim/strategy.go

    }
    
    func (persistentvolumeclaimStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate sets the Status field which is not allowed to be set by end users on update
    func (persistentvolumeclaimStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newPvc := obj.(*api.PersistentVolumeClaim)
    	oldPvc := old.(*api.PersistentVolumeClaim)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 20:58:25 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  5. pkg/registry/apps/deployment/strategy.go

    }
    
    // AllowCreateOnUpdate is false for deployments.
    func (deploymentStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (deploymentStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newDeployment := obj.(*apps.Deployment)
    	oldDeployment := old.(*apps.Deployment)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:07:13 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. pkg/registry/storage/csistoragecapacity/strategy.go

    func (csiStorageCapacityStrategy) Canonicalize(obj runtime.Object) {
    }
    
    func (csiStorageCapacityStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate is currently a NOP.
    func (csiStorageCapacityStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (csiStorageCapacityStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 08:41:09 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. pkg/registry/apps/statefulset/strategy.go

    		return false
    	}
    
    	return statefulset.Spec.UpdateStrategy.RollingUpdate.MaxUnavailable != nil
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (statefulSetStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newStatefulSet := obj.(*apps.StatefulSet)
    	oldStatefulSet := old.(*apps.StatefulSet)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 15:48:10 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  8. pkg/registry/scheduling/priorityclass/strategy.go

    func (priorityClassStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	pc := obj.(*scheduling.PriorityClass)
    	pc.Generation = 1
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (priorityClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {}
    
    // Validate validates a new PriorityClass.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. pkg/registry/storage/storageclass/strategy.go

    func (storageClassStrategy) Canonicalize(obj runtime.Object) {
    }
    
    func (storageClassStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate sets the Status fields which is not allowed to be set by an end user updating a PV
    func (storageClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (storageClassStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 25 07:15:34 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  10. pkg/registry/apps/replicaset/strategy_test.go

    			Replicas:           3,
    			ObservedGeneration: int64(11),
    		},
    	}
    	StatusStrategy.PrepareForUpdate(ctx, newRS, oldRS)
    	if newRS.Status.Replicas != 3 {
    		t.Errorf("ReplicaSet status updates should allow change of replicas: %v", newRS.Status.Replicas)
    	}
    	if newRS.Spec.Replicas != 3 {
    		t.Errorf("PrepareForUpdate should have preferred spec")
    	}
    	errs := StatusStrategy.ValidateUpdate(ctx, newRS, oldRS)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 09 21:04:31 UTC 2021
    - 6.9K bytes
    - Viewed (0)
Back to top