Skip to content

Commit fadadca

Browse files
committed
Make joinConfiguration.discovery.bootstrapToken.token optional
1 parent d753f40 commit fadadca

6 files changed

+3
-18
lines changed

bootstrap/kubeadm/api/v1beta1/kubeadm_types.go

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

bootstrap/kubeadm/api/v1beta2/kubeadm_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,10 @@ 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
634-
Token string `json:"token"`
634+
Token string `json:"token,omitempty"`
635635

636636
// apiServerEndpoint is an IP or domain name to the API server from which info will be fetched.
637637
// +optional

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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)