Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValidatePodStatusUpdate (0.27 sec)

  1. pkg/apis/core/validation/validation.go

    			}
    		}
    	}
    	return allErrs
    }
    
    // ValidatePodStatusUpdate checks for changes to status that shouldn't occur in normal operation.
    func ValidatePodStatusUpdate(newPod, oldPod *core.Pod, opts PodValidationOptions) field.ErrorList {
    	fldPath := field.NewPath("metadata")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation_test.go

    	},
    	}
    
    	for _, test := range tests {
    		test.new.ObjectMeta.ResourceVersion = "1"
    		test.old.ObjectMeta.ResourceVersion = "1"
    		errs := ValidatePodStatusUpdate(&test.new, &test.old, PodValidationOptions{})
    		if test.err == "" {
    			if len(errs) != 0 {
    				t.Errorf("unexpected invalid: %s (%+v)\nA: %+v\nB: %+v", test.test, errs, test.new, test.old)
    			}
    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