retrieval: fix pod label and annotation prefixes

This commit is contained in:
Frederic Branczyk 2016-10-11 09:22:56 +02:00 committed by Fabian Reinartz
parent 2e18c81a00
commit a318d9ad27

View file

@ -109,12 +109,12 @@ func podLabels(pod *apiv1.Pod) model.LabelSet {
}
for k, v := range pod.Labels {
ln := strutil.SanitizeLabelName(serviceLabelPrefix + k)
ln := strutil.SanitizeLabelName(podLabelPrefix + k)
ls[model.LabelName(ln)] = lv(v)
}
for k, v := range pod.Annotations {
ln := strutil.SanitizeLabelName(serviceAnnotationPrefix + k)
ln := strutil.SanitizeLabelName(podAnnotationPrefix + k)
ls[model.LabelName(ln)] = lv(v)
}