Change API field references for scheduling v1, v1alpha1 and v1beta1

Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
This commit is contained in:
Chirayu Kapoor 2022-11-13 18:46:35 +05:30
parent 8e48df1353
commit 776995e68e
4 changed files with 10 additions and 10 deletions

View File

@ -51,7 +51,7 @@ type PriorityClass struct {
// +optional // +optional
metav1.ObjectMeta metav1.ObjectMeta
// The value of this priority class. This is the actual priority that pods // 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. // receive when they have the name of this class in their pod spec.
Value int32 Value int32
@ -63,12 +63,12 @@ type PriorityClass struct {
// +optional // +optional
GlobalDefault bool GlobalDefault bool
// Description is an arbitrary string that usually provides guidelines on // description is an arbitrary string that usually provides guidelines on
// when this priority class should be used. // when this priority class should be used.
// +optional // +optional
Description string Description string
// PreemptionPolicy it the Policy for preempting pods with lower priority. // preemptionPolicy it the Policy for preempting pods with lower priority.
// This field is beta-level. // This field is beta-level.
// +optional // +optional
PreemptionPolicy *core.PreemptionPolicy PreemptionPolicy *core.PreemptionPolicy
@ -84,6 +84,6 @@ type PriorityClassList struct {
// +optional // +optional
metav1.ListMeta metav1.ListMeta
// Items is the list of PriorityClasses. // items is the list of PriorityClasses.
Items []PriorityClass Items []PriorityClass
} }

View File

@ -34,7 +34,7 @@ type PriorityClass struct {
// +optional // +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// The value of this priority class. This is the actual priority that pods // 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. // receive when they have the name of this class in their pod spec.
Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"` Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"`
@ -51,7 +51,7 @@ type PriorityClass struct {
// +optional // +optional
Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"` Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"`
// PreemptionPolicy is the Policy for preempting pods with lower priority. // preemptionPolicy is the Policy for preempting pods with lower priority.
// One of Never, PreemptLowerPriority. // One of Never, PreemptLowerPriority.
// Defaults to PreemptLowerPriority if unset. // Defaults to PreemptLowerPriority if unset.
// +optional // +optional

View File

@ -35,7 +35,7 @@ type PriorityClass struct {
// +optional // +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// The value of this priority class. This is the actual priority that pods // 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. // receive when they have the name of this class in their pod spec.
Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"` Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"`
@ -52,7 +52,7 @@ type PriorityClass struct {
// +optional // +optional
Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"` Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"`
// PreemptionPolicy is the Policy for preempting pods with lower priority. // preemptionPolicy is the Policy for preempting pods with lower priority.
// One of Never, PreemptLowerPriority. // One of Never, PreemptLowerPriority.
// Defaults to PreemptLowerPriority if unset. // Defaults to PreemptLowerPriority if unset.
// +optional // +optional

View File

@ -39,7 +39,7 @@ type PriorityClass struct {
// +optional // +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// The value of this priority class. This is the actual priority that pods // 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. // receive when they have the name of this class in their pod spec.
Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"` Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"`
@ -56,7 +56,7 @@ type PriorityClass struct {
// +optional // +optional
Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"` Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"`
// PreemptionPolicy is the Policy for preempting pods with lower priority. // preemptionPolicy is the Policy for preempting pods with lower priority.
// One of Never, PreemptLowerPriority. // One of Never, PreemptLowerPriority.
// Defaults to PreemptLowerPriority if unset. // Defaults to PreemptLowerPriority if unset.
// +optional // +optional