Skip to content

Commit 3605e4d

Browse files
committed
update daemonset to have selector
1 parent 18e50b0 commit 3605e4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/status/collector/collector.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ func UpdateCollectorStatus(ctx context.Context, cli client.Client, changed *v1al
3636
changed.Status.Version = version.OpenTelemetryCollector()
3737
}
3838
mode := changed.Spec.Mode
39-
if mode != v1alpha1.ModeDeployment && mode != v1alpha1.ModeStatefulSet {
39+
// Check if there are any unsupported modes ie Sidecar
40+
if mode != v1alpha1.ModeDeployment && mode != v1alpha1.ModeStatefulSet && mode != v1alpha1.ModeDaemonSet {
4041
changed.Status.Scale.Replicas = 0
4142
changed.Status.Scale.Selector = ""
4243
return nil
@@ -96,4 +97,4 @@ func UpdateCollectorStatus(ctx context.Context, cli client.Client, changed *v1al
9697
changed.Status.Scale.StatusReplicas = statusReplicas
9798

9899
return nil
99-
}
100+
}

0 commit comments

Comments
 (0)