Skip to content

Commit dd0d609

Browse files
committed
Set min length validation to 0 for Bootstrap token
1 parent d753f40 commit dd0d609

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bootstrap/kubeadm/api/v1beta1/kubeadm_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ type BootstrapTokenDiscovery struct {
585585
// token is a token used to validate cluster information
586586
// fetched from the control-plane.
587587
// +required
588-
// +kubebuilder:validation:MinLength=1
588+
// +kubebuilder:validation:MinLength=0
589589
// +kubebuilder:validation:MaxLength=512
590590
Token string `json:"token"`
591591

bootstrap/kubeadm/api/v1beta2/kubeadm_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ type BootstrapTokenDiscovery struct {
629629
// token is a token used to validate cluster information
630630
// fetched from the control-plane.
631631
// +required
632-
// +kubebuilder:validation:MinLength=1
632+
// +kubebuilder:validation:MinLength=0
633633
// +kubebuilder:validation:MaxLength=512
634634
Token string `json:"token"`
635635

0 commit comments

Comments
 (0)