Skip to content

Commit 863f62a

Browse files
committed
fix order
Signed-off-by: Tamal Saha <[email protected]>
1 parent b1b08b7 commit 863f62a

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

pkg/crd/known_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ var KnownPackages = map[string]PackageOverride{
7979
p.Schemata[TypeIdent{Name: "IntOrString", Package: pkg}] = apiext.JSONSchemaProps{
8080
XIntOrString: true,
8181
AnyOf: []apiext.JSONSchemaProps{
82-
{Type: "string"},
8382
{Type: "integer"},
83+
{Type: "string"},
8484
},
8585
}
8686
// No point in calling AddPackage, this is the sole inhabitant

pkg/crd/testdata/testdata.kubebuilder.io_cronjobs.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,8 @@ spec:
12551255
type: string
12561256
port:
12571257
anyOf:
1258-
- type: string
12591258
- type: integer
1259+
- type: string
12601260
description: Name or number of the
12611261
port to access on the container.
12621262
Number must be in the range 1
@@ -1282,8 +1282,8 @@ spec:
12821282
type: string
12831283
port:
12841284
anyOf:
1285-
- type: string
12861285
- type: integer
1286+
- type: string
12871287
description: Number or name of the
12881288
port to access on the container.
12891289
Number must be in the range 1
@@ -1372,8 +1372,8 @@ spec:
13721372
type: string
13731373
port:
13741374
anyOf:
1375-
- type: string
13761375
- type: integer
1376+
- type: string
13771377
description: Name or number of the
13781378
port to access on the container.
13791379
Number must be in the range 1
@@ -1399,8 +1399,8 @@ spec:
13991399
type: string
14001400
port:
14011401
anyOf:
1402-
- type: string
14031402
- type: integer
1403+
- type: string
14041404
description: Number or name of the
14051405
port to access on the container.
14061406
Number must be in the range 1
@@ -1482,8 +1482,8 @@ spec:
14821482
type: string
14831483
port:
14841484
anyOf:
1485-
- type: string
14861485
- type: integer
1486+
- type: string
14871487
description: Name or number of the port
14881488
to access on the container. Number
14891489
must be in the range 1 to 65535. Name
@@ -1527,8 +1527,8 @@ spec:
15271527
type: string
15281528
port:
15291529
anyOf:
1530-
- type: string
15311530
- type: integer
1531+
- type: string
15321532
description: Number or name of the port
15331533
to access on the container. Number
15341534
must be in the range 1 to 65535. Name
@@ -1671,8 +1671,8 @@ spec:
16711671
type: string
16721672
port:
16731673
anyOf:
1674-
- type: string
16751674
- type: integer
1675+
- type: string
16761676
description: Name or number of the port
16771677
to access on the container. Number
16781678
must be in the range 1 to 65535. Name
@@ -1716,8 +1716,8 @@ spec:
17161716
type: string
17171717
port:
17181718
anyOf:
1719-
- type: string
17201719
- type: integer
1720+
- type: string
17211721
description: Number or name of the port
17221722
to access on the container. Number
17231723
must be in the range 1 to 65535. Name
@@ -2448,8 +2448,8 @@ spec:
24482448
type: string
24492449
port:
24502450
anyOf:
2451-
- type: string
24522451
- type: integer
2452+
- type: string
24532453
description: Name or number of the
24542454
port to access on the container.
24552455
Number must be in the range 1
@@ -2475,8 +2475,8 @@ spec:
24752475
type: string
24762476
port:
24772477
anyOf:
2478-
- type: string
24792478
- type: integer
2479+
- type: string
24802480
description: Number or name of the
24812481
port to access on the container.
24822482
Number must be in the range 1
@@ -2565,8 +2565,8 @@ spec:
25652565
type: string
25662566
port:
25672567
anyOf:
2568-
- type: string
25692568
- type: integer
2569+
- type: string
25702570
description: Name or number of the
25712571
port to access on the container.
25722572
Number must be in the range 1
@@ -2592,8 +2592,8 @@ spec:
25922592
type: string
25932593
port:
25942594
anyOf:
2595-
- type: string
25962595
- type: integer
2596+
- type: string
25972597
description: Number or name of the
25982598
port to access on the container.
25992599
Number must be in the range 1
@@ -2675,8 +2675,8 @@ spec:
26752675
type: string
26762676
port:
26772677
anyOf:
2678-
- type: string
26792678
- type: integer
2679+
- type: string
26802680
description: Name or number of the port
26812681
to access on the container. Number
26822682
must be in the range 1 to 65535. Name
@@ -2720,8 +2720,8 @@ spec:
27202720
type: string
27212721
port:
27222722
anyOf:
2723-
- type: string
27242723
- type: integer
2724+
- type: string
27252725
description: Number or name of the port
27262726
to access on the container. Number
27272727
must be in the range 1 to 65535. Name
@@ -2864,8 +2864,8 @@ spec:
28642864
type: string
28652865
port:
28662866
anyOf:
2867-
- type: string
28682867
- type: integer
2868+
- type: string
28692869
description: Name or number of the port
28702870
to access on the container. Number
28712871
must be in the range 1 to 65535. Name
@@ -2909,8 +2909,8 @@ spec:
29092909
type: string
29102910
port:
29112911
anyOf:
2912-
- type: string
29132912
- type: integer
2913+
- type: string
29142914
description: Number or name of the port
29152915
to access on the container. Number
29162916
must be in the range 1 to 65535. Name

0 commit comments

Comments
 (0)