Skip to content

Commit 7e6eaac

Browse files
authored
Merge pull request kubernetes-sigs#12164 from mboersma/datasecretname-min-length-zero
🐛 Relax minLength for bootstrap.dataSecretName to 0
2 parents 891a3bd + 6597677 commit 7e6eaac

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
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
}

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)