func ValidateTikvCluster(tc *v1alpha1.TikvCluster) field.ErrorList {
	allErrs := field.ErrorList{}
	// validate metadata
	fldPath := field.NewPath("metadata")
	// validate metadata/annotations
	allErrs = append(allErrs, validateAnnotations(tc.ObjectMeta.Annotations, fldPath.Child("annotations"))...)
	// validate spec
	allErrs = append(allErrs, validateTiKVClusterSpec(&tc.Spec, field.NewPath("spec"))...)
	return allErrs
}
// ValidateTikvCluster validates a TikvCluster, it performs basic validation for all TikvClusters despite it is legacy
// or not
ValidateTikvCluster validates a TikvCluster, it performs basic validation for all TikvClusters despite it is legacy
or not
// ValidateTikvCluster validates a TikvCluster it performs basic validation for all TikvClusters despite it is legacy // or not
func ValidateTikvCluster(tc *v1alpha1.TikvCluster) field.ErrorList {
	allErrs := field.ErrorList{}
	fldPath := field.NewPath("metadata")
	/annotations
	allErrs = append(allErrs, validateAnnotations(tc.ObjectMeta.Annotations, fldPath.Child("annotations"))...)
	allErrs = append(allErrs, validateTiKVClusterSpec(&tc.Spec, field.NewPath("spec"))...)
	return allErrs
}
func ValidateTikvCluster ( tc * v1alpha1 . TikvCluster ) field . ErrorList { allErrs := field . ErrorList { } fldPath := field . NewPath ( " " ) allErrs = append ( allErrs , validateAnnotations ( tc . ObjectMeta . Annotations , fldPath . Child ( " " ) ) ... ) allErrs = append ( allErrs , validateTiKVClusterSpec ( & tc . Spec , field . NewPath ( " " ) ) ... ) return allErrs }
ValidateTikvCluster validates a TikvCluster, it performs basic validation for all TikvClusters despite it is legacy
or not
ValidateTikvCluster validates a TikvCluster it performs basic validation for all TikvClusters despite it is legacy or not
// validate metadata // validate metadata/annotations // validate spec