func ValidateUpdateTikvCluster(old, tc *v1alpha1.TikvCluster) field.ErrorList {

	allErrs := field.ErrorList{}
	// basic validation
	allErrs = append(allErrs, ValidateTikvCluster(tc)...)
	allErrs = append(allErrs, validateUpdatePDConfig(old.Spec.PD.Config, tc.Spec.PD.Config, field.NewPath("spec.pd.config"))...)
	allErrs = append(allErrs, disallowUsingLegacyAPIInNewCluster(old, tc)...)

	return allErrs
}
// ValidateUpdateTikvCluster validates a new TikvCluster against an existing TikvCluster to be updated
ValidateUpdateTikvCluster validates a new TikvCluster against an existing TikvCluster to be updated
// ValidateUpdateTikvCluster validates a new TikvCluster against an existing TikvCluster to be updated
func ValidateUpdateTikvCluster(old, tc *v1alpha1.TikvCluster) field.ErrorList {
	allErrs := field.ErrorList{}
	allErrs = append(allErrs, ValidateTikvCluster(tc)...)
	allErrs = append(allErrs, validateUpdatePDConfig(old.Spec.PD.Config, tc.Spec.PD.Config, field.NewPath("spec.pd.config"))...)
	allErrs = append(allErrs, disallowUsingLegacyAPIInNewCluster(old, tc)...)
	return allErrs
}
func ValidateUpdateTikvCluster ( old , tc * v1alpha1 . TikvCluster ) field . ErrorList { allErrs := field . ErrorList { } allErrs = append ( allErrs , ValidateTikvCluster ( tc ) ... ) allErrs = append ( allErrs , validateUpdatePDConfig ( old . Spec . PD . Config , tc . Spec . PD . Config , field . NewPath ( " " ) ) ... ) allErrs = append ( allErrs , disallowUsingLegacyAPIInNewCluster ( old , tc ) ... ) return allErrs }
ValidateUpdateTikvCluster validates a new TikvCluster against an existing TikvCluster to be updated
ValidateUpdateTikvCluster validates a new TikvCluster against an existing TikvCluster to be updated
// basic validation