Merge pull request #80520 from ethan-daocloud/patch-2

fix wrong spells in events.go
This commit is contained in:
Kubernetes Prow Robot
2019-07-26 00:04:00 -07:00
committed by GitHub

View File

@@ -68,7 +68,7 @@ func ValidateEvent(event *core.Event) field.ErrorList {
allErrs = append(allErrs, field.Required(field.NewPath("reportingInstance"), "")) allErrs = append(allErrs, field.Required(field.NewPath("reportingInstance"), ""))
} }
if len(event.ReportingInstance) > ReportingInstanceLengthLimit { if len(event.ReportingInstance) > ReportingInstanceLengthLimit {
allErrs = append(allErrs, field.Invalid(field.NewPath("repotingIntance"), "", fmt.Sprintf("can have at most %v characters", ReportingInstanceLengthLimit))) allErrs = append(allErrs, field.Invalid(field.NewPath("reportingInstance"), "", fmt.Sprintf("can have at most %v characters", ReportingInstanceLengthLimit)))
} }
if len(event.Action) == 0 { if len(event.Action) == 0 {
allErrs = append(allErrs, field.Required(field.NewPath("action"), "")) allErrs = append(allErrs, field.Required(field.NewPath("action"), ""))