You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[kuttl] remove job CR conditions due to change with 4.18
With OCP 4.16 a successful finished job status condition
only has a single Complete condition type in the condition
list, e.g.:
~~~
status:
completionTime: "2025-03-12T07:59:15Z"
conditions:
- lastProbeTime: "2025-03-12T07:59:15Z"
lastTransitionTime: "2025-03-12T07:59:15Z"
status: "True"
type: Complete
ready: 0
startTime: "2025-03-12T07:59:09Z"
succeeded: 1
terminating: 0
uncountedTerminatedPods: {}
~~~
Starting with OCP 4.18 there is another condition,
CompletionsReached`, e.g.:
~~~
status:
completionTime: "2025-03-11T17:37:14Z"
conditions:
- lastProbeTime: "2025-03-11T17:37:14Z"
lastTransitionTime: "2025-03-11T17:37:14Z"
message: Reached expected number of succeeded pods
reason: CompletionsReached
status: "True"
type: SuccessCriteriaMet
- lastProbeTime: "2025-03-11T17:37:14Z"
lastTransitionTime: "2025-03-11T17:37:14Z"
message: Reached expected number of succeeded pods
reason: CompletionsReached
status: "True"
type: Complete
ready: 0
startTime: "2025-03-11T17:37:07Z"
succeeded: 1
terminating: 0
uncountedTerminatedPods: {}
~~~
As a result switching to OCP 4.18 make the dataplane kuttl tests
to fail because kuttl can not validate a single entry from
a list.
~~~
status:
+ completionTime: "2025-03-11T19:02:07Z"
conditions:
- - status: "True"
+ - lastProbeTime: "2025-03-11T19:02:07Z"
+ lastTransitionTime: "2025-03-11T19:02:07Z"
+ message: Reached expected number of succeeded pods
+ reason: CompletionsReached
+ status: "True"
+ type: SuccessCriteriaMet
+ - lastProbeTime: "2025-03-11T19:02:07Z"
+ lastTransitionTime: "2025-03-11T19:02:07Z"
+ message: Reached expected number of succeeded pods
+ reason: CompletionsReached
+ status: "True"
type: Complete
ready: 0
+ startTime: "2025-03-11T19:02:02Z"
succeeded: 1
terminating: 0
uncountedTerminatedPods: {}
case.go:380: resource Job:openstack-kuttl-tests/configure-os-edpm-compute-global-edpm-compute-global: .status.conditions: slice length mismatch: 1 != 2
~~~
This PR removes the conditions on the job asserts since the
succeeded:1 should be enough to validate that the job ran
successful.
Signed-off-by: Martin Schuppert <[email protected]>
0 commit comments