Skip to content

Commit a5a1bf2

Browse files
authored
Merge pull request #857 from yashbhutwala/855-string-validation
fix the example validation for minimum length of string type
2 parents 956dd25 + dbed15f commit a5a1bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/src/cronjob-tutorial/testdata/project/api/v1/cronjob_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ the fields.
5757

5858
// CronJobSpec defines the desired state of CronJob
5959
type CronJobSpec struct {
60-
// +kubebuilder:validation:Minimum=0
60+
// +kubebuilder:validation:MinLength=0
6161

6262
// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
6363
Schedule string `json:"schedule"`

0 commit comments

Comments
 (0)