// that do not specify any priority class and there is no priority class
// that do not specify any priority class and there is no priority class
// marked as default.
// marked as default.
DefaultPriorityWhenNoDefaultClassExists=0
DefaultPriorityWhenNoDefaultClassExists=0
// HighestUserDefinablePriority is the highest priority for user defined priority classes. Priority values larger than 1 billion are reserved for Kubernetes system use.
HighestUserDefinablePriority=int32(1000000000)
// SystemCriticalPriority is the beginning of the range of priority values for critical system components.
// HighestUserDefinablePriority is the highest priority for user defined priority classes. Priority values larger than 1 billion are reserved for Kubernetes system use.
HighestUserDefinablePriority=int32(1000000000)
// SystemCriticalPriority is the beginning of the range of priority values for critical system components.
returnadmission.NewForbidden(a,fmt.Errorf("priority class names with '"+scheduling.SystemPriorityClassPrefix+"' prefix are reserved for system use only"))
}
}
}
// If the new PriorityClass tries to be the default priority, make sure that no other priority class is marked as default.
// If the new PriorityClass tries to be the default priority, make sure that no other priority class is marked as default.