Documentation ¶
Index ¶
Constants ¶
View Source
const GroupName = "scheduling.k8s.io"
Variables ¶
View Source
var ( GroupVersion = metav1.GroupVersion{Group: GroupName, Version: "v1"} SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme SchemaGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} )
Functions ¶
This section is empty.
Types ¶
type PriorityClass ¶
type PriorityClass struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // value represents the integer value of this priority class. This is the actual priority that pods // receive when they have the name of this class in their pod spec. Value int `json:"value"` // globalDefault specifies whether this PriorityClass should be considered as // the default priority for pods that do not have any priority class. // Only one PriorityClass can be marked as `globalDefault`. However, if more than // one PriorityClasses exists with their `globalDefault` field set to true, // the smallest value of such global default PriorityClasses will be used as the default priority. GlobalDefault bool `json:"globalDefault,omitempty"` // description is an arbitrary string that usually provides guidelines on // when this priority class should be used. Description string `json:"description,omitempty"` // preemptionPolicy is the Policy for preempting pods with lower priority. // One of Never, PreemptLowerPriority. // Defaults to PreemptLowerPriority if unset. PreemptionPolicy corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"` }
func (*PriorityClass) DeepCopy ¶
func (in *PriorityClass) DeepCopy() *PriorityClass
func (*PriorityClass) DeepCopyInto ¶
func (in *PriorityClass) DeepCopyInto(out *PriorityClass)
func (*PriorityClass) DeepCopyObject ¶
func (in *PriorityClass) DeepCopyObject() runtime.Object
type PriorityClassList ¶
type PriorityClassList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PriorityClass `json:"items"` }
func (*PriorityClassList) DeepCopy ¶
func (in *PriorityClassList) DeepCopy() *PriorityClassList
func (*PriorityClassList) DeepCopyInto ¶
func (in *PriorityClassList) DeepCopyInto(out *PriorityClassList)
func (*PriorityClassList) DeepCopyObject ¶
func (in *PriorityClassList) DeepCopyObject() runtime.Object
Click to show internal directories.
Click to hide internal directories.