Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateReplicationControllerUpdate (0.52 sec)

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

    	opts := pod.GetValidationOptionsFromPodTemplate(newRc.Spec.Template, oldRc.Spec.Template)
    	validationErrorList := corevalidation.ValidateReplicationController(newRc, opts)
    	updateErrorList := corevalidation.ValidateReplicationControllerUpdate(newRc, oldRc, opts)
    	errs := append(validationErrorList, updateErrorList...)
    
    	for key, value := range helper.NonConvertibleFields(oldRc.Annotations) {
    		parts := strings.Split(key, "/")
    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

    	allErrs = append(allErrs, ValidateReplicationControllerSpec(&controller.Spec, nil, field.NewPath("spec"), opts)...)
    	return allErrs
    }
    
    // ValidateReplicationControllerUpdate tests if required fields in the replication controller are set.
    func ValidateReplicationControllerUpdate(controller, oldController *core.ReplicationController, opts PodValidationOptions) 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 := ValidateReplicationControllerUpdate(&successCase.update, &successCase.old, PodValidationOptions{}); len(errs) != 0 {
    			t.Errorf("expected success: %v", errs)
    		}
    	}
    	errorCases := map[string]rcUpdateTest{
    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