Skip to content

Commit d566691

Browse files
authored
[target allocator] Update version to v0.132.0 (#2019)
* [target allocator] Update version to v0.132.0 * update example * Update .chloggen/upgradetargetallocator.yaml * Update .chloggen/upgradetargetallocator.yaml * binary search for last working version * binary search: v0.118.0 worked, now testing v0.126.0 * binary search: v0.126.0 didn't work, trying v0.122.0 * binary search: v0.122.0 didn't work, trying v0.120.0 * binary search: v0.120.0 worked, trying v0.121.0 * set collectorNotReadyGracePeriod * set collector namespace by default * add logs from pod not ready to test output * fix syntax error * attempt latest target allocator version again to see if conn refused error in collector agent goes away * Remove debug logging * update changelog * Use {{ .Release.Namespace }} in template to set default value * Changes requested by Jina - Leave value empty in values.yaml with comment - Allow filling from helper template or values.yaml * update chlog as requested by jinja2
1 parent c80fb02 commit d566691

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: enhancement
3+
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other)
4+
component: Target Allocator
5+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
6+
note: Update version to `v0.132.0`
7+
# One or more tracking issues related to the change
8+
issues: [2019]
9+
# (Optional) One or more lines of additional information to render under the primary note.
10+
# These lines will be padded with 2 spaces and then inserted directly into the document.
11+
# Use pipe (|) for multiline entries.
12+
subtext: |
13+
Please review the config `targetAllocator.config.collector_namespace`
14+
introduced in this version which is set to the release namespace by default.

examples/with-target-allocator/rendered_manifests/targetAllocator-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ metadata:
1818
data:
1919
targetallocator.yaml: |
2020
allocation_strategy: per-node
21+
collector_namespace: default
2122
collector_selector:
2223
matchlabels:
2324
component: otel-collector-agent

examples/with-target-allocator/rendered_manifests/targetAllocator-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
serviceAccountName: default-splunk-otel-collector-ta
2121
containers:
2222
- name: targetallocator
23-
image: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:v0.105.0
23+
image: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:v0.132.0
2424
ports:
2525
- containerPort: 8080
2626
name: http-port

helm-charts/splunk-otel-collector/templates/targetAllocator-configmap.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ metadata:
1212
heritage: {{ .Release.Service }}
1313
data:
1414
targetallocator.yaml: |
15-
{{- .Values.targetAllocator.config | toYaml | nindent 4 }}
15+
{{- $config := .Values.targetAllocator.config }}
16+
{{- if not $config.collector_namespace }}
17+
{{- $_ := set $config "collector_namespace" (include "splunk-otel-collector.namespace" .) }}
18+
{{- end }}
19+
{{- $config | toYaml | nindent 4 }}
1620
{{- end }}

helm-charts/splunk-otel-collector/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ certmanager:
13791379

13801380
targetAllocator:
13811381
enabled: false
1382-
image: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:v0.105.0
1382+
image: ghcr.io/open-telemetry/opentelemetry-operator/target-allocator:v0.132.0
13831383
serviceAccount:
13841384
# Specifies whether a ServiceAccount should be created
13851385
create: true
@@ -1391,6 +1391,8 @@ targetAllocator:
13911391
annotations: {}
13921392
config:
13931393
allocation_strategy: per-node
1394+
# Optional: Namespace where the collector pods are running. Defaults to the release namespace,
1395+
collector_namespace: ""
13941396
collector_selector:
13951397
matchlabels:
13961398
component: otel-collector-agent

0 commit comments

Comments
 (0)