// buildLabelsWithAnnotations merges annotations into labels.
buildLabelsWithAnnotations merges annotations into labels.
// buildLabelsWithAnnotations merges annotations into labels .
func buildLabelsWithAnnotations(labels, annotations map[string]string) map[string]string {
	if annotations == nil {
		return labels
	}
	newLabels := labels
	if labels == nil {
		newLabels = make(map[string]string)
	}
	rawAnnotations, err := json.Marshal(annotations)
	if err != nil {
		glog.Warningf("Unable to marshal annotations %q: %v", annotations, err)
	}
	newLabels[fraktiAnnotationLabel] = string(rawAnnotations)
	return newLabels
}
func buildLabelsWithAnnotations ( labels , annotations map [ string ] string ) map [ string ] string { if annotations == nil { return labels } newLabels := labels if labels == nil { newLabels = make ( map [ string ] string ) } rawAnnotations , err := json . Marshal ( annotations ) if err != nil { glog . Warningf ( " " , annotations , err ) } newLabels [ fraktiAnnotationLabel ] = string ( rawAnnotations ) return newLabels }
buildLabelsWithAnnotations merges annotations into labels.
buildLabelsWithAnnotations merges annotations into labels .