Skip to content

Commit 2980d85

Browse files
committed
feat: change creationtimestamp to some value
1 parent 634fef8 commit 2980d85

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

operator/handler/handler_test.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var _ = Describe("handler", func() {
9292
"apiVersion": "v1",
9393
"kind": "Pod",
9494
"metadata": {
95-
"creationTimestamp": null,
95+
"creationTimestamp": "null",
9696
"name": "pod-with-annotations",
9797
"namespace": "tailing-sidecar-system",
9898
"annotations": {
@@ -304,7 +304,7 @@ var _ = Describe("handler", func() {
304304
"apiVersion": "v1",
305305
"kind": "Pod",
306306
"metadata": {
307-
"creationTimestamp": null,
307+
"creationTimestamp": "2024-01-01T00:00:00Z",
308308
"name": "pod-empty-annotations",
309309
"annotations": {}
310310
},
@@ -339,7 +339,7 @@ var _ = Describe("handler", func() {
339339
"apiVersion": "v1",
340340
"kind": "Pod",
341341
"metadata": {
342-
"creationTimestamp": null,
342+
"creationTimestamp": "2024-01-01T00:00:00Z",
343343
"name": "pod-with-null-annotation",
344344
"annotations": null
345345
},
@@ -374,7 +374,7 @@ var _ = Describe("handler", func() {
374374
"apiVersion": "v1",
375375
"kind": "Pod",
376376
"metadata": {
377-
"creationTimestamp": null,
377+
"creationTimestamp": "2024-01-01T00:00:00Z",
378378
"name": "pod-with-colon-in-annotation",
379379
"annotations": {
380380
"tailing-sidecar": ":"
@@ -411,7 +411,7 @@ var _ = Describe("handler", func() {
411411
"apiVersion": "v1",
412412
"kind": "Pod",
413413
"metadata": {
414-
"creationTimestamp": null,
414+
"creationTimestamp": "2024-01-01T00:00:00Z",
415415
"name": "pod-with-empty-string-in-annotation",
416416
"annotations": {
417417
"tailing-sidecar": ""
@@ -471,7 +471,7 @@ var _ = Describe("handler", func() {
471471
"apiVersion": "v1",
472472
"kind": "Pod",
473473
"metadata": {
474-
"creationTimestamp": null,
474+
"creationTimestamp": "2024-01-01T00:00:00Z",
475475
"name": "pod-with-annotations",
476476
"namespace": "tailing-sidecar-system",
477477
"annotations": {
@@ -578,7 +578,7 @@ var _ = Describe("handler", func() {
578578
"apiVersion": "v1",
579579
"kind": "Pod",
580580
"metadata": {
581-
"creationTimestamp": null,
581+
"creationTimestamp": "2024-01-01T00:00:00Z",
582582
"name": "pod-with-annotations",
583583
"namespace": "tailing-sidecar-system",
584584
"annotations": {
@@ -691,7 +691,7 @@ var _ = Describe("handler", func() {
691691
"apiVersion": "v1",
692692
"kind": "Pod",
693693
"metadata": {
694-
"creationTimestamp": null,
694+
"creationTimestamp": "2024-01-01T00:00:00Z",
695695
"name": "pod-with-annotations",
696696
"namespace": "tailing-sidecar-system-different",
697697
"annotations": {
@@ -802,7 +802,7 @@ var _ = Describe("handler", func() {
802802
"apiVersion": "v1",
803803
"kind": "Pod",
804804
"metadata": {
805-
"creationTimestamp": null,
805+
"creationTimestamp": "2024-01-01T00:00:00Z",
806806
"name": "pod-with-annotations",
807807
"namespace": "tailing-sidecar-system",
808808
"labels": {
@@ -923,7 +923,7 @@ var _ = Describe("handler", func() {
923923
"apiVersion": "v1",
924924
"kind": "Pod",
925925
"metadata": {
926-
"creationTimestamp": null,
926+
"creationTimestamp": "2024-01-01T00:00:00Z",
927927
"name": "pod-with-annotations",
928928
"namespace": "tailing-sidecar-system",
929929
"labels": {
@@ -1054,7 +1054,7 @@ var _ = Describe("handler", func() {
10541054
"apiVersion": "v1",
10551055
"kind": "Pod",
10561056
"metadata": {
1057-
"creationTimestamp": null,
1057+
"creationTimestamp": "2024-01-01T00:00:00Z",
10581058
"name": "pod-with-annotations",
10591059
"namespace": "tailing-sidecar-system",
10601060
"labels": {
@@ -1160,7 +1160,7 @@ var _ = Describe("handler", func() {
11601160
"apiVersion": "v1",
11611161
"kind": "Pod",
11621162
"metadata": {
1163-
"creationTimestamp": null,
1163+
"creationTimestamp": "2024-01-01T00:00:00Z",
11641164
"name": "pod-with-annotations",
11651165
"namespace": "tailing-sidecar-system",
11661166
"labels": {
@@ -1267,7 +1267,7 @@ var _ = Describe("handler", func() {
12671267
"apiVersion": "v1",
12681268
"kind": "Pod",
12691269
"metadata": {
1270-
"creationTimestamp": null,
1270+
"creationTimestamp": "2024-01-01T00:00:00Z",
12711271
"name": "pod-with-annotations",
12721272
"namespace": "tailing-sidecar-system",
12731273
"labels": {
@@ -1369,7 +1369,7 @@ var _ = Describe("handler", func() {
13691369
"apiVersion": "v1",
13701370
"kind": "Pod",
13711371
"metadata": {
1372-
"creationTimestamp": null,
1372+
"creationTimestamp": "2024-01-01T00:00:00Z",
13731373
"name": "pod-with-annotations",
13741374
"namespace": "tailing-sidecar-system",
13751375
"labels": {
@@ -1471,7 +1471,7 @@ var _ = Describe("handler", func() {
14711471
"apiVersion": "v1",
14721472
"kind": "Pod",
14731473
"metadata": {
1474-
"creationTimestamp": null,
1474+
"creationTimestamp": "2024-01-01T00:00:00Z",
14751475
"name": "pod-with-annotations",
14761476
"namespace": "tailing-sidecar-system",
14771477
"labels": {
@@ -1602,7 +1602,7 @@ var _ = Describe("handler", func() {
16021602
"apiVersion": "v1",
16031603
"kind": "Pod",
16041604
"metadata": {
1605-
"creationTimestamp": null,
1605+
"creationTimestamp": "2024-01-01T00:00:00Z",
16061606
"name": "pod-with-annotations",
16071607
"namespace": "tailing-sidecar-system",
16081608
"labels": {
@@ -1696,7 +1696,7 @@ var _ = Describe("handler", func() {
16961696
"apiVersion": "v1",
16971697
"kind": "Pod",
16981698
"metadata": {
1699-
"creationTimestamp": null,
1699+
"creationTimestamp": "2024-01-01T00:00:00Z",
17001700
"name": "pod-with-annotations",
17011701
"namespace": "tailing-sidecar-system",
17021702
"labels": {
@@ -1759,7 +1759,7 @@ var _ = Describe("handler", func() {
17591759
"apiVersion": "v1",
17601760
"kind": "Pod",
17611761
"metadata": {
1762-
"creationTimestamp": null,
1762+
"creationTimestamp": "2024-01-01T00:00:00Z",
17631763
"name": "pod-with-annotations",
17641764
"namespace": "tailing-sidecar-system",
17651765
"annotations": {
@@ -1884,7 +1884,7 @@ var _ = Describe("handler", func() {
18841884
"apiVersion": "v1",
18851885
"kind": "Pod",
18861886
"metadata": {
1887-
"creationTimestamp": null,
1887+
"creationTimestamp": "2024-01-01T00:00:00Z",
18881888
"name": "pod-with-annotations",
18891889
"namespace": "tailing-sidecar-system",
18901890
"labels": {

0 commit comments

Comments
 (0)