Move formatLabels function to labels package

As the TODO above the function instructed, move formatLables
function to labels package.
This commit is contained in:
hurf
2015-08-16 17:33:35 +08:00
parent 5fe7029e68
commit 36987e9dce
4 changed files with 29 additions and 29 deletions

View File

@@ -23,7 +23,6 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/meta"
"k8s.io/kubernetes/pkg/labels"
)
const kubectlAnnotationPrefix = "kubectl.kubernetes.io/"
@@ -32,15 +31,6 @@ type NamespaceInfo struct {
Namespace string
}
// TODO Move to labels package.
func formatLabels(labelMap map[string]string) string {
l := labels.Set(labelMap).String()
if l == "" {
l = "<none>"
}
return l
}
func listOfImages(spec *api.PodSpec) []string {
var images []string
for _, container := range spec.Containers {