code: func ValidateConfiguration(config *internalapi.Configuration) error {
  	allErrs := field.ErrorList{}
  	fldpath := field.NewPath("podtolerationrestriction")
  	allErrs = append(allErrs, validation.ValidateTolerations(config.Default, fldpath.Child("default"))...)
  	allErrs = append(allErrs, validation.ValidateTolerations(config.Whitelist, fldpath.Child("whitelist"))...)
  	if len(allErrs) > 0 {
  		return fmt.Errorf("invalid config: %v", allErrs)
  	}
  	return nil
  }
docs: // ValidateConfiguration validates the configuration.