Skip to content

Commit d0b1ca9

Browse files
nemarjancursoragent
andcommitted
[kuttl] Drop null Job pod template creationTimestamp asserts
cifmw-multinode-kuttl started failing this test after the GitHub check jobs moved from OCP 4.20 to 4.22. The dataplane deploy itself succeeds; KUTTL then compares live Jobs against a full YAML dump that still has Job.spec.template.metadata.creationTimestamp: null (leftover from oc get -o yaml). On 4.20 the API still serialized that null key, so the assert matched. On 4.22 Kubernetes omits empty creationTimestamp (omitempty), so the key is missing from the live object. KUTTL waits the full timeout for a field that will never appear, then fails with: .spec.template.metadata.creationTimestamp: key is missing from map Remove the dumped null fields from the Job asserts so the test does not depend on that serialization difference. Signed-off-by: Nemanja Marjanovic <nemarjan@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 84322c7 commit d0b1ca9

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

test/kuttl/tests/dataplane-deploy-global-service-test/01-assert.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ spec:
205205
suspend: false
206206
template:
207207
metadata:
208-
creationTimestamp: null
209208
labels:
210209
app: openstackansibleee
211210
batch.kubernetes.io/job-name: download-cache-edpm-compute-global-edpm-compute-global
@@ -303,7 +302,6 @@ spec:
303302
suspend: false
304303
template:
305304
metadata:
306-
creationTimestamp: null
307305
labels:
308306
app: openstackansibleee
309307
batch.kubernetes.io/job-name: bootstrap-edpm-compute-global-edpm-compute-global
@@ -407,7 +405,6 @@ spec:
407405
suspend: false
408406
template:
409407
metadata:
410-
creationTimestamp: null
411408
labels:
412409
app: openstackansibleee
413410
batch.kubernetes.io/job-name: configure-network-edpm-compute-global-edpm-compute-global
@@ -505,7 +502,6 @@ spec:
505502
suspend: false
506503
template:
507504
metadata:
508-
creationTimestamp: null
509505
labels:
510506
app: openstackansibleee
511507
batch.kubernetes.io/job-name: validate-network-edpm-compute-global-edpm-compute-global
@@ -603,7 +599,6 @@ spec:
603599
suspend: false
604600
template:
605601
metadata:
606-
creationTimestamp: null
607602
labels:
608603
app: openstackansibleee
609604
batch.kubernetes.io/job-name: configure-os-edpm-compute-global-edpm-compute-global
@@ -701,7 +696,6 @@ spec:
701696
suspend: false
702697
template:
703698
metadata:
704-
creationTimestamp: null
705699
labels:
706700
app: openstackansibleee
707701
batch.kubernetes.io/job-name: install-certs-edpm-compute-global-edpm-compute-global
@@ -848,7 +842,6 @@ spec:
848842
suspend: false
849843
template:
850844
metadata:
851-
creationTimestamp: null
852845
labels:
853846
app: openstackansibleee
854847
batch.kubernetes.io/job-name: ovn-edpm-compute-global-edpm-compute-global
@@ -957,7 +950,6 @@ spec:
957950
suspend: false
958951
template:
959952
metadata:
960-
creationTimestamp: null
961953
labels:
962954
app: openstackansibleee
963955
batch.kubernetes.io/job-name: neutron-metadata-edpm-compute-global-edpm-compute-global
@@ -1096,7 +1088,6 @@ spec:
10961088
suspend: false
10971089
template:
10981090
metadata:
1099-
creationTimestamp: null
11001091
labels:
11011092
app: openstackansibleee
11021093
batch.kubernetes.io/job-name: neutron-ovn-edpm-compute-global-edpm-compute-global
@@ -1235,7 +1226,6 @@ spec:
12351226
suspend: false
12361227
template:
12371228
metadata:
1238-
creationTimestamp: null
12391229
labels:
12401230
app: openstackansibleee
12411231
batch.kubernetes.io/job-name: neutron-sriov-edpm-compute-global-edpm-compute-global
@@ -1344,7 +1334,6 @@ spec:
13441334
suspend: false
13451335
template:
13461336
metadata:
1347-
creationTimestamp: null
13481337
labels:
13491338
app: openstackansibleee
13501339
batch.kubernetes.io/job-name: neutron-dhcp-edpm-compute-global-edpm-compute-global
@@ -1453,7 +1442,6 @@ spec:
14531442
suspend: false
14541443
template:
14551444
metadata:
1456-
creationTimestamp: null
14571445
labels:
14581446
app: openstackansibleee
14591447
batch.kubernetes.io/job-name: libvirt-edpm-compute-global-edpm-compute-global
@@ -1562,7 +1550,6 @@ spec:
15621550
suspend: false
15631551
template:
15641552
metadata:
1565-
creationTimestamp: null
15661553
labels:
15671554
app: openstackansibleee
15681555
batch.kubernetes.io/job-name: nova-edpm-compute-global-edpm-compute-global

test/kuttl/tests/dataplane-deploy-global-service-test/02-assert.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ spec:
9898
suspend: false
9999
template:
100100
metadata:
101-
creationTimestamp: null
102101
labels:
103102
app: openstackansibleee
104103
batch.kubernetes.io/job-name: download-cache-edpm-multinodeset-edpm-compute-beta-nodeset
@@ -195,7 +194,6 @@ spec:
195194
suspend: false
196195
template:
197196
metadata:
198-
creationTimestamp: null
199197
labels:
200198
app: openstackansibleee
201199
batch.kubernetes.io/job-name: bootstrap-edpm-multinodeset-edpm-compute-beta-nodeset

0 commit comments

Comments
 (0)