Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 112 for PrepareForUpdate (0.23 sec)

  1. pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go

    }
    
    // AllowCreateOnUpdate is false for autoscalers.
    func (autoscalerStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (autoscalerStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newHPA := obj.(*autoscaling.HorizontalPodAutoscaler)
    	oldHPA := old.(*autoscaling.HorizontalPodAutoscaler)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 04:51:00 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. pkg/registry/admissionregistration/validatingwebhookconfiguration/strategy.go

    	ic := obj.(*admissionregistration.ValidatingWebhookConfiguration)
    	ic.Generation = 1
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (validatingWebhookConfigurationStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newIC := obj.(*admissionregistration.ValidatingWebhookConfiguration)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. pkg/registry/node/runtimeclass/strategy.go

    // on creation.
    func (strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newRuntimeClass := obj.(*node.RuntimeClass)
    	oldRuntimeClass := old.(*node.RuntimeClass)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 09 08:17:32 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. pkg/registry/rbac/clusterrolebinding/strategy.go

    // on creation.
    func (strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	_ = obj.(*rbac.ClusterRoleBinding)
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newClusterRoleBinding := obj.(*rbac.ClusterRoleBinding)
    	oldClusterRoleBinding := old.(*rbac.ClusterRoleBinding)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  5. pkg/registry/core/endpoint/strategy.go

    func (endpointsStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (endpointsStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    // Validate validates a new endpoints.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  6. pkg/registry/batch/cronjob/strategy.go

    	cronJob.Status = batch.CronJobStatus{}
    
    	cronJob.Generation = 1
    
    	pod.DropDisabledTemplateFields(&cronJob.Spec.JobTemplate.Spec.Template, nil)
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (cronJobStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newCronJob := obj.(*batch.CronJob)
    	oldCronJob := old.(*batch.CronJob)
    	newCronJob.Status = oldCronJob.Status
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 15:14:03 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. pkg/registry/networking/networkpolicy/strategy.go

    	networkPolicy := obj.(*networking.NetworkPolicy)
    	networkPolicy.Generation = 1
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (networkPolicyStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newNetworkPolicy := obj.(*networking.NetworkPolicy)
    	oldNetworkPolicy := old.(*networking.NetworkPolicy)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/rest/create_update.go

    	AllowCreateOnUpdate() bool
    	// PrepareForUpdate is invoked on update before validation to normalize
    	// the object.  For example: remove fields that are not to be persisted,
    	// sort order-insensitive list fields, etc.  This should not remove fields
    	// whose presence would be considered a validation error.
    	PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  9. pkg/registry/rbac/clusterrole/strategy.go

    // on creation.
    func (strategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	_ = obj.(*rbac.ClusterRole)
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newClusterRole := obj.(*rbac.ClusterRole)
    	oldClusterRole := old.(*rbac.ClusterRole)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  10. pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy.go

    	ic := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)
    	ic.Generation = 1
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (v *validatingAdmissionPolicyBindingStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newIC := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top