Skip to content

Commit ed53efc

Browse files
committed
restore comments
1 parent 5ace419 commit ed53efc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/manifests/targetallocator/labels.go

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ func Labels(instance v1alpha2.OpenTelemetryCollector, name string) map[string]st
2828
// SelectorLabels return the selector labels for Target Allocator Pods.
2929
func SelectorLabels(instance v1alpha2.OpenTelemetryCollector) map[string]string {
3030
selectorLabels := manifestutils.SelectorLabels(instance.ObjectMeta, ComponentOpenTelemetryTargetAllocator)
31+
32+
// TargetAllocator uses the name label as well for selection
33+
// This is inconsistent with the Collector, but changing is a somewhat painful breaking change
3134
// Don't override the app name if it already exists
3235
if name, ok := instance.ObjectMeta.Labels["app.kubernetes.io/name"]; ok {
3336
selectorLabels["app.kubernetes.io/name"] = name

0 commit comments

Comments
 (0)