Revert "Revert "Test Service creation -> endpoint generation latency""

This reverts commit 654857114e.
This commit is contained in:
Daniel Smith
2015-06-10 09:47:21 -07:00
parent c99d18b6d5
commit 47294dd326
4 changed files with 209 additions and 2 deletions

View File

@@ -376,11 +376,11 @@ func (s *Scheme) Convert(in, out interface{}) error {
// versioned representation to an unversioned one.
func (s *Scheme) ConvertFieldLabel(version, kind, label, value string) (string, string, error) {
if s.fieldLabelConversionFuncs[version] == nil {
return "", "", fmt.Errorf("No conversion function found for version: %s", version)
return "", "", fmt.Errorf("No field label conversion function found for version: %s", version)
}
conversionFunc, ok := s.fieldLabelConversionFuncs[version][kind]
if !ok {
return "", "", fmt.Errorf("No conversion function found for version %s and kind %s", version, kind)
return "", "", fmt.Errorf("No field label conversion function found for version %s and kind %s", version, kind)
}
return conversionFunc(label, value)
}