Skip to content

Commit 5837b2d

Browse files
🐛 (deploy-image/v1-alpha1): Remove default max size validation (#4909)
(deploy-image/v1-alpha1): Remove default max size validation
1 parent 0ee91d6 commit 5837b2d

File tree

13 files changed

+0
-20
lines changed

13 files changed

+0
-20
lines changed

pkg/plugins/golang/deploy-image/v1alpha1/scaffolds/internal/templates/api/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ type {{ .Resource.Kind }}Spec struct {
8080
// The following markers will use OpenAPI v3 schema to validate the value
8181
// More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
8282
// +kubebuilder:validation:Minimum=1
83-
// +kubebuilder:validation:Maximum=3
84-
// +kubebuilder:validation:ExclusiveMaximum=false
8583
Size int32 ` + "`" + `json:"size,omitempty"` + "`" + `
8684
8785
{{ if not (isEmptyStr .Port) -}}

testdata/project-v4-multigroup/api/example.com/v1alpha1/busybox_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ type BusyboxSpec struct {
3232
// The following markers will use OpenAPI v3 schema to validate the value
3333
// More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
3434
// +kubebuilder:validation:Minimum=1
35-
// +kubebuilder:validation:Maximum=3
36-
// +kubebuilder:validation:ExclusiveMaximum=false
3735
Size int32 `json:"size,omitempty"`
3836
}
3937

testdata/project-v4-multigroup/api/example.com/v1alpha1/memcached_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ type MemcachedSpec struct {
3232
// The following markers will use OpenAPI v3 schema to validate the value
3333
// More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
3434
// +kubebuilder:validation:Minimum=1
35-
// +kubebuilder:validation:Maximum=3
36-
// +kubebuilder:validation:ExclusiveMaximum=false
3735
Size int32 `json:"size,omitempty"`
3836

3937
// Port defines the port that will be used to init the container with the image

testdata/project-v4-multigroup/config/crd/bases/example.com.testproject.org_busyboxes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ spec:
4545
The following markers will use OpenAPI v3 schema to validate the value
4646
More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
4747
format: int32
48-
maximum: 3
4948
minimum: 1
5049
type: integer
5150
type: object

testdata/project-v4-multigroup/config/crd/bases/example.com.testproject.org_memcacheds.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ spec:
5050
The following markers will use OpenAPI v3 schema to validate the value
5151
More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
5252
format: int32
53-
maximum: 3
5453
minimum: 1
5554
type: integer
5655
type: object

testdata/project-v4-multigroup/dist/install.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ spec:
161161
The following markers will use OpenAPI v3 schema to validate the value
162162
More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
163163
format: int32
164-
maximum: 3
165164
minimum: 1
166165
type: integer
167166
type: object
@@ -673,7 +672,6 @@ spec:
673672
The following markers will use OpenAPI v3 schema to validate the value
674673
More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
675674
format: int32
676-
maximum: 3
677675
minimum: 1
678676
type: integer
679677
type: object

testdata/project-v4-with-plugins/api/v1alpha1/busybox_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ type BusyboxSpec struct {
3232
// The following markers will use OpenAPI v3 schema to validate the value
3333
// More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
3434
// +kubebuilder:validation:Minimum=1
35-
// +kubebuilder:validation:Maximum=3
36-
// +kubebuilder:validation:ExclusiveMaximum=false
3735
Size int32 `json:"size,omitempty"`
3836
}
3937

testdata/project-v4-with-plugins/api/v1alpha1/memcached_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ type MemcachedSpec struct {
3232
// The following markers will use OpenAPI v3 schema to validate the value
3333
// More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
3434
// +kubebuilder:validation:Minimum=1
35-
// +kubebuilder:validation:Maximum=3
36-
// +kubebuilder:validation:ExclusiveMaximum=false
3735
Size int32 `json:"size,omitempty"`
3836

3937
// Port defines the port that will be used to init the container with the image

testdata/project-v4-with-plugins/config/crd/bases/example.com.testproject.org_busyboxes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ spec:
4545
The following markers will use OpenAPI v3 schema to validate the value
4646
More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
4747
format: int32
48-
maximum: 3
4948
minimum: 1
5049
type: integer
5150
type: object

testdata/project-v4-with-plugins/config/crd/bases/example.com.testproject.org_memcacheds.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ spec:
5050
The following markers will use OpenAPI v3 schema to validate the value
5151
More info: https://book.kubebuilder.io/reference/markers/crd-validation.html
5252
format: int32
53-
maximum: 3
5453
minimum: 1
5554
type: integer
5655
type: object

0 commit comments

Comments
 (0)