Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateReplicaSetStatusUpdate (0.23 sec)

  1. pkg/registry/apps/replicaset/strategy.go

    	// update is not allowed to set spec
    	newRS.Spec = oldRS.Spec
    }
    
    func (rsStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return appsvalidation.ValidateReplicaSetStatusUpdate(obj.(*apps.ReplicaSet), old.(*apps.ReplicaSet))
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (rsStatusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:43 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  2. pkg/apis/apps/validation/validation.go

    	allErrs = append(allErrs, ValidateReplicaSetSpec(&rs.Spec, &oldRs.Spec, field.NewPath("spec"), opts)...)
    	return allErrs
    }
    
    // ValidateReplicaSetStatusUpdate tests if required fields in the ReplicaSet are set.
    func ValidateReplicaSetStatusUpdate(rs, oldRs *apps.ReplicaSet) field.ErrorList {
    	allErrs := field.ErrorList{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  3. pkg/apis/apps/validation/validation_test.go

    			},
    		},
    	},
    	}
    	for _, successCase := range successCases {
    		successCase.old.ObjectMeta.ResourceVersion = "1"
    		successCase.update.ObjectMeta.ResourceVersion = "1"
    		if errs := ValidateReplicaSetStatusUpdate(&successCase.update, &successCase.old); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    	}
    	errorCases := map[string]rcUpdateTest{
    		"negative replicas": {
    			old: apps.ReplicaSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
Back to top