code: func ValidateInitConfiguration(c *kubeadm.InitConfiguration) field.ErrorList {
  	allErrs := field.ErrorList{}
  	allErrs = append(allErrs, ValidateNodeRegistrationOptions(&c.NodeRegistration, field.NewPath("nodeRegistration"))...)
  	allErrs = append(allErrs, ValidateBootstrapTokens(c.BootstrapTokens, field.NewPath("bootstrapTokens"))...)
  	allErrs = append(allErrs, ValidateClusterConfiguration(&c.ClusterConfiguration)...)
  	allErrs = append(allErrs, ValidateAPIEndpoint(&c.LocalAPIEndpoint, field.NewPath("localAPIEndpoint"))...)
  	return allErrs
  }
docs: // ValidateInitConfiguration validates an InitConfiguration object and collects all encountered errors