Skip to content

Commit

Permalink
fix(metrics): use targetallocator serviceaccount created by the operator
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Dec 14, 2023
1 parent 4c193e1 commit 212b872
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions .changelog/3447.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(metrics): use targetallocator serviceaccount created by the operator
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ spec:
{{- if .Values.sumologic.metrics.collector.otelcol.allocationStrategy }}
allocationStrategy: {{ .Values.sumologic.metrics.collector.otelcol.allocationStrategy }}
{{- end }}
# we set serviceAccount to work around https://github.com/open-telemetry/opentelemetry-operator/issues/2443
# TODO: drop this after the above is fixed
serviceAccount: {{ template "sumologic.metadata.name.metrics.targetallocator.serviceaccount" . }}
enabled: true
filterStrategy: relabel-config
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
replicas: 1
serviceAccount: RELEASE-NAME-sumologic-metrics
targetAllocator:
serviceAccount: RELEASE-NAME-sumologic-metrics-targetallocator
enabled: true
filterStrategy: relabel-config
prometheusCR:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
serviceAccount: RELEASE-NAME-sumologic-metrics
targetAllocator:
allocationStrategy: consistent-hashing
serviceAccount: RELEASE-NAME-sumologic-metrics-targetallocator
enabled: true
filterStrategy: relabel-config
prometheusCR:
Expand Down

0 comments on commit 212b872

Please sign in to comment.