Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateReplicationControllerStatusUpdate (0.3 sec)

  1. pkg/registry/core/replicationcontroller/strategy.go

    	// update is not allowed to set spec
    	newRc.Spec = oldRc.Spec
    }
    
    func (rcStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return corevalidation.ValidateReplicationControllerStatusUpdate(obj.(*api.ReplicationController), old.(*api.ReplicationController))
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:10 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    	return allErrs
    }
    
    // ValidateReplicationControllerStatusUpdate tests if required fields in the replication controller are set.
    func ValidateReplicationControllerStatusUpdate(controller, oldController *core.ReplicationController) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation_test.go

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