Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validatePodConditions (0.37 sec)

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

    	return allErrs
    }
    
    // validatePodConditions tests if the custom pod conditions are valid.
    func validatePodConditions(conditions []core.PodCondition, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	systemConditions := sets.New(
    		core.PodScheduled,
    		core.PodReady,
    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

    		}, {
    			Type:   core.PodConditionType("example.com/condition"),
    			Status: core.ConditionFalse,
    		}},
    	},
    	}
    
    	for _, tc := range successCases {
    		if errs := validatePodConditions(tc.podConditions, field.NewPath("field")); len(errs) != 0 {
    			t.Errorf("expected tc %q to success, but got: %v", tc.desc, errs)
    		}
    	}
    
    	errorCases := []struct {
    		desc          string
    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