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

@@ -141,6 +141,19 @@ func addConversionFuncs() {
// If one of the conversion functions is malformed, detect it immediately.
panic(err)
}
err = api.Scheme.AddFieldLabelConversionFunc("v1beta3", "Endpoints",
func(label, value string) (string, string, error) {
switch label {
case "metadata.name":
return label, value, nil
default:
return "", "", fmt.Errorf("field label not supported: %s", label)
}
})
if err != nil {
// If one of the conversion functions is malformed, detect it immediately.
panic(err)
}
}
func convert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(in *api.ReplicationControllerSpec, out *ReplicationControllerSpec, s conversion.Scope) error {