Skip to content

Commit ec3058e

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

6 files changed

+6
-14
lines changed

bootstrap/kubeadm/api/v1beta1/kubeadm_types.go

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ type Discovery struct {
628628
type BootstrapTokenDiscovery struct {
629629
// token is a token used to validate cluster information
630630
// fetched from the control-plane.
631-
// +required
631+
// +optional
632632
// +kubebuilder:validation:MinLength=1
633633
// +kubebuilder:validation:MaxLength=512
634634
Token string `json:"token"`

bootstrap/kubeadm/config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bootstrap/kubeadm/config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigtemplates.yaml

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controlplane/kubeadm/config/crd/bases/controlplane.cluster.x-k8s.io_kubeadmcontrolplanes.yaml

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controlplane/kubeadm/config/crd/bases/controlplane.cluster.x-k8s.io_kubeadmcontrolplanetemplates.yaml

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)