@@ -121,20 +121,21 @@ type PodGroupSpec struct {
121
121
122
122
// PodGroupStatus represents the current state of a pod group.
123
123
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
+
124
128
// The number of actively running pods.
125
129
// +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"`
127
131
128
132
// The number of pods which reached phase Succeeded.
129
133
// +optional
130
134
Succeeded int32 `json:"succeeded,omitempty" protobuf:"bytes,3,opt,name=succeeded"`
131
135
132
136
// The number of pods which reached phase Failed.
133
137
// +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"`
138
139
}
139
140
140
141
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
0 commit comments