Skip to content

Commit 94e077b

Browse files
committed
Relax minLength for bootstrap.dataSecretName to 0
1 parent 9fbc50a commit 94e077b

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

api/v1beta1/machine_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ type Bootstrap struct {
669669
// dataSecretName is the name of the secret that stores the bootstrap data script.
670670
// If nil, the Machine should remain in the Pending state.
671671
// +optional
672-
// +kubebuilder:validation:MinLength=1
672+
// +kubebuilder:validation:MinLength=0
673673
// +kubebuilder:validation:MaxLength=253
674674
DataSecretName *string `json:"dataSecretName,omitempty"`
675675
}

api/v1beta2/machine_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ type Bootstrap struct {
696696
// dataSecretName is the name of the secret that stores the bootstrap data script.
697697
// If nil, the Machine should remain in the Pending state.
698698
// +optional
699-
// +kubebuilder:validation:MinLength=1
699+
// +kubebuilder:validation:MinLength=0
700700
// +kubebuilder:validation:MaxLength=253
701701
DataSecretName *string `json:"dataSecretName,omitempty"`
702702
}

bootstrap/kubeadm/api/v1beta1/kubeadmconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ type KubeadmConfigStatus struct {
458458

459459
// dataSecretName is the name of the secret that stores the bootstrap data script.
460460
// +optional
461-
// +kubebuilder:validation:MinLength=1
461+
// +kubebuilder:validation:MinLength=0
462462
// +kubebuilder:validation:MaxLength=253
463463
DataSecretName *string `json:"dataSecretName,omitempty"`
464464

bootstrap/kubeadm/api/v1beta2/kubeadmconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ type KubeadmConfigStatus struct {
467467

468468
// dataSecretName is the name of the secret that stores the bootstrap data script.
469469
// +optional
470-
// +kubebuilder:validation:MinLength=1
470+
// +kubebuilder:validation:MinLength=0
471471
// +kubebuilder:validation:MaxLength=253
472472
DataSecretName *string `json:"dataSecretName,omitempty"`
473473

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

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

config/crd/bases/cluster.x-k8s.io_machinedeployments.yaml

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

config/crd/bases/cluster.x-k8s.io_machinepools.yaml

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

config/crd/bases/cluster.x-k8s.io_machines.yaml

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

config/crd/bases/cluster.x-k8s.io_machinesets.yaml

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

0 commit comments

Comments
 (0)