Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidatePodStatusUpdate (0.47 sec)

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

    	oldPod := old.(*api.Pod)
    	opts := podutil.GetValidationOptionsFromPodSpecAndMeta(&pod.Spec, &oldPod.Spec, &pod.ObjectMeta, &oldPod.ObjectMeta)
    	opts.ResourceIsPod = true
    
    	return corevalidation.ValidatePodStatusUpdate(obj.(*api.Pod), old.(*api.Pod), opts)
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (podStatusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  2. 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)
  3. 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