Skip to content

Commit dedda60

Browse files
authored
Remove deprecated extraAttributes.podLabels values.yaml option (#1994)
1 parent d7b6c3d commit dedda60

File tree

4 files changed

+15
-23
lines changed

4 files changed

+15
-23
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: breaking
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: chart
5+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
6+
note: Remove deprecated `extraAttributes.podLabels` configuration option.
7+
# One or more tracking issues related to the change
8+
issues: [1994]
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+
This option was deprecated in version 0.38.0 in favor of `extraAttributes.fromLabels`.
14+
See migration guide: https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#0371-to-0380

helm-charts/splunk-otel-collector/templates/NOTES.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ Splunk OpenTelemetry Collector is installed and configured to send data to Splun
1919
[WARNING] The ".Values.service" config is deprecated. Please use ".Values.agent.service" and ".Values.gateway.service" for configuring services for the agent and gateway, respectively.
2020
This field will be removed in a future release.
2121
{{ end }}
22-
{{- if not (eq (toString .Values.extraAttributes.podLabels) "<nil>") }}
23-
[WARNING] ".Values.extraAttributes.podLabels" parameter is deprecated, please use ".Values.extraAttributes.fromLabels" instead.
24-
Upgrade guidelines: https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#0371-to-0380
25-
{{ end }}
2622
{{- if not (eq (toString .Values.image.fluentd.initContainer) "<nil>") }}
2723
[WARNING] "image.fluentd.initContainer" parameter is deprecated now. Now we use the same splunk/fluentd-hec image in init container.
2824
Upgrade guidelines: https://github.com/signalfx/splunk-otel-collector-chart/blob/main/UPGRADING.md#0371-to-0380

helm-charts/splunk-otel-collector/templates/config/_common.tpl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,8 @@ k8sattributes:
223223
tag_name: com.splunk.index
224224
from: pod
225225
{{- include "splunk-otel-collector.addExtraAnnotations" . | nindent 6 }}
226-
{{- if or .Values.extraAttributes.podLabels .Values.extraAttributes.fromLabels }}
226+
{{- if .Values.extraAttributes.fromLabels }}
227227
labels:
228-
{{- range .Values.extraAttributes.podLabels }}
229-
- key: {{ . }}
230-
{{- end }}
231228
{{- include "splunk-otel-collector.addExtraLabels" . | nindent 6 }}
232229
{{- end }}
233230
{{- end }}
@@ -342,11 +339,6 @@ resource/logs:
342339
- key: label_app
343340
from_attribute: k8s.pod.labels.app
344341
action: upsert
345-
{{- range $_, $label := .Values.extraAttributes.podLabels }}
346-
- key: {{ printf "label_%s" $label }}
347-
from_attribute: {{ printf "k8s.pod.labels.%s" $label }}
348-
action: upsert
349-
{{- end }}
350342
{{- if not .Values.splunkPlatform.fieldNameConvention.keepOtelConvention }}
351343
- key: k8s.container.name
352344
action: delete
@@ -360,10 +352,6 @@ resource/logs:
360352
action: delete
361353
- key: k8s.pod.labels.app
362354
action: delete
363-
{{- range $_, $label := .Values.extraAttributes.podLabels }}
364-
- key: {{ printf "k8s.pod.labels.%s" $label }}
365-
action: delete
366-
{{- end }}
367355
{{- end }}
368356
{{- end }}
369357
{{- end }}

helm-charts/splunk-otel-collector/values.schema.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,6 @@
313313
"type": "object",
314314
"additionalProperties": false,
315315
"properties": {
316-
"podLabels": {
317-
"type": "array",
318-
"items": {
319-
"type": "string"
320-
}
321-
},
322316
"fromLabels": {
323317
"type": "array",
324318
"items": {

0 commit comments

Comments
 (0)