@@ -1129,17 +1129,10 @@ var _ = ginkgo.Describe("MultiKueue", ginkgo.Ordered, ginkgo.ContinueOnFailure,
1129
1129
1130
1130
gomega .Eventually (func (g gomega.Gomega ) {
1131
1131
g .Expect (managerTestCluster .client .Get (managerTestCluster .ctx , wlLookupKey , createdWorkload )).To (gomega .Succeed ())
1132
- acs := workload .FindAdmissionCheck (createdWorkload .Status .AdmissionChecks , multikueueAC .Name )
1132
+ acs := workload .FindAdmissionCheck (createdWorkload .Status .AdmissionChecks , multiKueueAC .Name )
1133
1133
g .Expect (acs ).NotTo (gomega .BeNil ())
1134
1134
g .Expect (acs .State ).To (gomega .Equal (kueue .CheckStatePending ))
1135
1135
g .Expect (acs .Message ).To (gomega .Equal (`The workload got reservation on "worker1"` ))
1136
- ok , err := utiltesting .HasEventAppeared (managerTestCluster .ctx , managerTestCluster .client , corev1.Event {
1137
- Reason : "MultiKueue" ,
1138
- Type : corev1 .EventTypeNormal ,
1139
- Message : `The workload got reservation on "worker1"` ,
1140
- })
1141
- g .Expect (err ).NotTo (gomega .HaveOccurred ())
1142
- g .Expect (ok ).To (gomega .BeTrue ())
1143
1136
}, util .Timeout , util .Interval ).Should (gomega .Succeed ())
1144
1137
1145
1138
gomega .Eventually (func (g gomega.Gomega ) {
@@ -1160,39 +1153,29 @@ var _ = ginkgo.Describe("MultiKueue", ginkgo.Ordered, ginkgo.ContinueOnFailure,
1160
1153
createdPod .Status .Phase = corev1 .PodSucceeded
1161
1154
createdPod .Status .Conditions = append (createdPod .Status .Conditions ,
1162
1155
corev1.PodCondition {
1163
- Type : corev1 .PodReadyToStartContainers ,
1164
- Status : corev1 .ConditionFalse ,
1165
- LastProbeTime : metav1 .Now (),
1166
- LastTransitionTime : metav1 .Now (),
1167
- Reason : "" ,
1156
+ Type : corev1 .PodReadyToStartContainers ,
1157
+ Status : corev1 .ConditionFalse ,
1158
+ Reason : "" ,
1168
1159
},
1169
1160
corev1.PodCondition {
1170
- Type : corev1 .PodInitialized ,
1171
- Status : corev1 .ConditionTrue ,
1172
- LastProbeTime : metav1 .Now (),
1173
- LastTransitionTime : metav1 .Now (),
1174
- Reason : string (corev1 .PodSucceeded ),
1161
+ Type : corev1 .PodInitialized ,
1162
+ Status : corev1 .ConditionTrue ,
1163
+ Reason : string (corev1 .PodSucceeded ),
1175
1164
},
1176
1165
corev1.PodCondition {
1177
- Type : corev1 .PodReady ,
1178
- Status : corev1 .ConditionFalse ,
1179
- LastProbeTime : metav1 .Now (),
1180
- LastTransitionTime : metav1 .Now (),
1181
- Reason : string (corev1 .PodSucceeded ),
1166
+ Type : corev1 .PodReady ,
1167
+ Status : corev1 .ConditionFalse ,
1168
+ Reason : string (corev1 .PodSucceeded ),
1182
1169
},
1183
1170
corev1.PodCondition {
1184
- Type : corev1 .ContainersReady ,
1185
- Status : corev1 .ConditionFalse ,
1186
- LastProbeTime : metav1 .Now (),
1187
- LastTransitionTime : metav1 .Now (),
1188
- Reason : string (corev1 .PodSucceeded ),
1171
+ Type : corev1 .ContainersReady ,
1172
+ Status : corev1 .ConditionFalse ,
1173
+ Reason : string (corev1 .PodSucceeded ),
1189
1174
},
1190
1175
corev1.PodCondition {
1191
- Type : corev1 .PodScheduled ,
1192
- Status : corev1 .ConditionTrue ,
1193
- LastProbeTime : metav1 .Now (),
1194
- LastTransitionTime : metav1 .Now (),
1195
- Reason : "" ,
1176
+ Type : corev1 .PodScheduled ,
1177
+ Status : corev1 .ConditionTrue ,
1178
+ Reason : "" ,
1196
1179
},
1197
1180
)
1198
1181
g .Expect (worker1TestCluster .client .Status ().Update (worker1TestCluster .ctx , & createdPod )).To (gomega .Succeed ())
0 commit comments