mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fix wrong spells in events.go
This commit is contained in:
parent
030274eba3
commit
72c727e3b4
@ -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"), ""))
|
||||||
|
Loading…
Reference in New Issue
Block a user