Skip to content

Commit 20b981d

Browse files
committed
Add omitempty, regenerate CRDs
1 parent d03daba commit 20b981d

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

apis/v1alpha2/nginxproxy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ type Patch struct {
403403
//
404404
// +optional
405405
// +kubebuilder:validation:XPreserveUnknownFields
406-
Value *apiextv1.JSON `json:"value"`
406+
Value *apiextv1.JSON `json:"value,omitempty"`
407407
}
408408

409409
// PatchType specifies the type of patch.

config/crd/bases/gateway.nginx.org_nginxproxies.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,6 @@ spec:
533533
For StrategicMerge and Merge patches, this should be a JSON object.
534534
For JSONPatch patches, this should be a JSON array of patch operations.
535535
x-kubernetes-preserve-unknown-fields: true
536-
required:
537-
- value
538536
type: object
539537
type: array
540538
pod:
@@ -3992,8 +3990,6 @@ spec:
39923990
For StrategicMerge and Merge patches, this should be a JSON object.
39933991
For JSONPatch patches, this should be a JSON array of patch operations.
39943992
x-kubernetes-preserve-unknown-fields: true
3995-
required:
3996-
- value
39973993
type: object
39983994
type: array
39993995
pod:
@@ -7070,8 +7066,6 @@ spec:
70707066
For StrategicMerge and Merge patches, this should be a JSON object.
70717067
For JSONPatch patches, this should be a JSON array of patch operations.
70727068
x-kubernetes-preserve-unknown-fields: true
7073-
required:
7074-
- value
70757069
type: object
70767070
type: array
70777071
type:

deploy/crds.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,8 +1118,6 @@ spec:
11181118
For StrategicMerge and Merge patches, this should be a JSON object.
11191119
For JSONPatch patches, this should be a JSON array of patch operations.
11201120
x-kubernetes-preserve-unknown-fields: true
1121-
required:
1122-
- value
11231121
type: object
11241122
type: array
11251123
pod:
@@ -4577,8 +4575,6 @@ spec:
45774575
For StrategicMerge and Merge patches, this should be a JSON object.
45784576
For JSONPatch patches, this should be a JSON array of patch operations.
45794577
x-kubernetes-preserve-unknown-fields: true
4580-
required:
4581-
- value
45824578
type: object
45834579
type: array
45844580
pod:
@@ -7655,8 +7651,6 @@ spec:
76557651
For StrategicMerge and Merge patches, this should be a JSON object.
76567652
For JSONPatch patches, this should be a JSON array of patch operations.
76577653
x-kubernetes-preserve-unknown-fields: true
7658-
required:
7659-
- value
76607654
type: object
76617655
type: array
76627656
type:

0 commit comments

Comments
 (0)