Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit 0deea00

Browse files
committed
Fixed status protobuf id.
Signed-off-by: Da K. Ma <[email protected]>
1 parent 062c598 commit 0deea00

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/apis/scheduling/v1alpha1/types.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,21 @@ type PodGroupSpec struct {
121121

122122
// PodGroupStatus represents the current state of a pod group.
123123
type PodGroupStatus struct {
124+
// The state of PodGroup.
125+
// +optional
126+
State PodGroupState `json:"state,omitempty" protobuf:"bytes,1,opt,name=state,casttype=State"`
127+
124128
// The number of actively running pods.
125129
// +optional
126-
Running int32 `json:"running,omitempty" protobuf:"bytes,3,opt,name=running"`
130+
Running int32 `json:"running,omitempty" protobuf:"bytes,2,opt,name=running"`
127131

128132
// The number of pods which reached phase Succeeded.
129133
// +optional
130134
Succeeded int32 `json:"succeeded,omitempty" protobuf:"bytes,3,opt,name=succeeded"`
131135

132136
// The number of pods which reached phase Failed.
133137
// +optional
134-
Failed int32 `json:"failed,omitempty" protobuf:"bytes,3,opt,name=failed"`
135-
136-
// +optional
137-
State PodGroupState `json:"state,omitempty" protobuf:"bytes,1,opt,name=state,casttype=State"`
138+
Failed int32 `json:"failed,omitempty" protobuf:"bytes,4,opt,name=failed"`
138139
}
139140

140141
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

0 commit comments

Comments
 (0)