Change runtime.Object signature

This commit is contained in:
Clayton Coleman
2015-12-07 22:01:12 -05:00
parent 114f6f76dc
commit 8f203a28f1
64 changed files with 831 additions and 364 deletions

View File

@@ -47,13 +47,13 @@ func ExtractFieldPathAsString(obj interface{}, fieldPath string) (string, error)
switch fieldPath {
case "metadata.annotations":
return formatMap(accessor.Annotations()), nil
return formatMap(accessor.GetAnnotations()), nil
case "metadata.labels":
return formatMap(accessor.Labels()), nil
return formatMap(accessor.GetLabels()), nil
case "metadata.name":
return accessor.Name(), nil
return accessor.GetName(), nil
case "metadata.namespace":
return accessor.Namespace(), nil
return accessor.GetNamespace(), nil
}
return "", fmt.Errorf("Unsupported fieldPath: %v", fieldPath)