Skip to content

Commit 0e65de3

Browse files
committed
MINOR: CR: Remove 'nullable: false' from CRDs
1 parent ceae568 commit 0e65de3

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

crs/definition/backend.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ spec:
2828
name:
2929
type: string
3030
pattern: ^[A-Za-z0-9-_.:]+$
31-
nullable: false
3231
balance:
3332
type: object
3433
required:
@@ -66,7 +65,6 @@ spec:
6665
type: boolean
6766
random_draws:
6867
type: integer
69-
nullable: false
7068
rdp_cookie_name:
7169
type: string
7270
pattern: ^[^\s]+$
@@ -281,11 +279,9 @@ spec:
281279
name:
282280
type: string
283281
pattern: ^[^\s]+$
284-
nullable: false
285282
address:
286283
type: string
287284
pattern: ^[^\s]+$
288-
nullable: false
289285
health_check_port:
290286
type: integer
291287
nullable: true
@@ -629,7 +625,6 @@ spec:
629625
- disabled
630626
interval:
631627
type: integer
632-
nullable: false
633628
server_timeout:
634629
type: integer
635630
nullable: true

crs/definition/defaults.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ spec:
6969
type: boolean
7070
random_draws:
7171
type: integer
72-
nullable: false
7372
rdp_cookie_name:
7473
type: string
7574
pattern: ^[^\s]+$
@@ -329,7 +328,6 @@ spec:
329328
- disabled
330329
interval:
331330
type: integer
332-
nullable: false
333331
retries:
334332
type: integer
335333
nullable: true
@@ -409,11 +407,9 @@ spec:
409407
name:
410408
type: string
411409
pattern: ^[^\s]+$
412-
nullable: false
413410
address:
414411
type: string
415412
pattern: ^[^\s]+$
416-
nullable: false
417413
health_check_port:
418414
type: integer
419415
nullable: true

crs/get-crd-schema.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ curl -sk https://raw.githubusercontent.com/haproxytech/client-native/$CN_COMMIT/
2424
.[$MODEL] |
2525
walk(
2626
if type == "object" then with_entries(
27-
if .key == "x-nullable" then
28-
.key = "nullable"
27+
if .key == "x-nullable" then
28+
if .value == false then
29+
empty
30+
else
31+
.key = "nullable"
32+
end
2933
elif (.key | contains("x-")) then
3034
empty
3135
else

0 commit comments

Comments
 (0)