mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	refactor: Change the users of IsQualifiedName to ValidateQualifiedName
This commit is contained in:
		@@ -146,9 +146,7 @@ func legacyValidateEvent(event *core.Event) field.ErrorList {
 | 
			
		||||
		if len(event.ReportingController) == 0 {
 | 
			
		||||
			allErrs = append(allErrs, field.Required(field.NewPath("reportingController"), ""))
 | 
			
		||||
		}
 | 
			
		||||
		for _, msg := range validation.IsQualifiedName(event.ReportingController) {
 | 
			
		||||
			allErrs = append(allErrs, field.Invalid(field.NewPath("reportingController"), event.ReportingController, msg))
 | 
			
		||||
		}
 | 
			
		||||
		allErrs = append(allErrs, ValidateQualifiedName(event.ReportingController, field.NewPath("reportingController"))...)
 | 
			
		||||
		if len(event.ReportingInstance) == 0 {
 | 
			
		||||
			allErrs = append(allErrs, field.Required(field.NewPath("reportingInstance"), ""))
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user