func makeLabels(composite *v1alpha2.Composite) map[string]string {
	return UnionMaps(
		composite.Labels,
		map[string]string{
			CompositeLabelKey:                 composite.Name,
			CompositeLabelKeySource:           composite.Name,
			CompositeTokenServiceLabelKey:     "true",
			ObservabilityInstanceKindLabelKey: "Composite",
			ObservabilityInstanceLabelKey:     composite.Name,
		},
	)
}
func createLabels(composite *v1alpha2.Composite) map[string]string {
labels := make(map[string]string, len(composite.ObjectMeta.Labels)+2)
labels[mesh.CompositeLabelKey] = composite.Name
labels[mesh.CompositeLabelKeySource] = composite.Name

for k, v := range composite.ObjectMeta.Labels {
labels[k] = v
}
return labels
}

func addTokenServiceLabels(labels map[string]string) map[string]string {
newLabels := make(map[string]string, len(labels)+1)
labels[mesh.CompositeTokenServiceLabelKey] = "true"
for k, v := range labels {
newLabels[k] = v
}
return newLabels
}
package resources
import (
	"fmt"
	"cellery.io/cellery-controller/pkg/apis/mesh/v1alpha2"
	. "cellery.io/cellery-controller/pkg/meta"
)