Skip to content

Commit 2284a0d

Browse files
larhaugamatheuscscp
authored andcommitted
CrossNamespaceObjectReference: Fix MaxLength validation to kubernetes max size of 253
Signed-off-by: Lars Haugan <[email protected]>
1 parent d32f5e2 commit 2284a0d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

api/v1/reference_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ type CrossNamespaceObjectReference struct {
3131
// Name of the referent
3232
// If multiple resources are targeted `*` may be set.
3333
// +kubebuilder:validation:MinLength=1
34-
// +kubebuilder:validation:MaxLength=53
34+
// +kubebuilder:validation:MaxLength=253
3535
// +required
3636
Name string `json:"name"`
3737

3838
// Namespace of the referent
3939
// +kubebuilder:validation:MinLength=1
40-
// +kubebuilder:validation:MaxLength=53
40+
// +kubebuilder:validation:MaxLength=253
4141
// +kubebuilder:validation:Optional
4242
// +optional
4343
Namespace string `json:"namespace,omitempty"`

config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,12 @@ spec:
302302
description: |-
303303
Name of the referent
304304
If multiple resources are targeted `*` may be set.
305-
maxLength: 53
305+
maxLength: 253
306306
minLength: 1
307307
type: string
308308
namespace:
309309
description: Namespace of the referent
310-
maxLength: 53
310+
maxLength: 253
311311
minLength: 1
312312
type: string
313313
required:
@@ -519,12 +519,12 @@ spec:
519519
description: |-
520520
Name of the referent
521521
If multiple resources are targeted `*` may be set.
522-
maxLength: 53
522+
maxLength: 253
523523
minLength: 1
524524
type: string
525525
namespace:
526526
description: Namespace of the referent
527-
maxLength: 53
527+
maxLength: 253
528528
minLength: 1
529529
type: string
530530
required:

config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ spec:
109109
description: |-
110110
Name of the referent
111111
If multiple resources are targeted `*` may be set.
112-
maxLength: 53
112+
maxLength: 253
113113
minLength: 1
114114
type: string
115115
namespace:
116116
description: Namespace of the referent
117-
maxLength: 53
117+
maxLength: 253
118118
minLength: 1
119119
type: string
120120
required:
@@ -536,12 +536,12 @@ spec:
536536
description: |-
537537
Name of the referent
538538
If multiple resources are targeted `*` may be set.
539-
maxLength: 53
539+
maxLength: 253
540540
minLength: 1
541541
type: string
542542
namespace:
543543
description: Namespace of the referent
544-
maxLength: 53
544+
maxLength: 253
545545
minLength: 1
546546
type: string
547547
required:

0 commit comments

Comments
 (0)