// ValidatePriorityClass tests whether required fields in the PriorityClass are // set correctly. func ValidatePriorityClass(pc *scheduling.PriorityClass) field.ErrorList { … } // ValidatePriorityClassUpdate tests if required fields in the PriorityClass are // set and are valid. PriorityClass does not allow updating name, value, and preemptionPolicy. func ValidatePriorityClassUpdate(pc, oldPc *scheduling.PriorityClass) field.ErrorList { … }