Skip to content

Commit 65c5c85

Browse files
committed
Fix Helm chart incorrectly handling Kubernetes versions containing a "+" character, causing deployment errors for PodDisruptionBudget in certain environments
1 parent 6917ba9 commit 65c5c85

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: bug_fix
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: Fix Helm chart incorrectly handling Kubernetes versions containing a "+" character, causing deployment errors for PodDisruptionBudget in certain environments
7+
# One or more tracking issues related to the change
8+
issues: [1144]
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:

helm-charts/splunk-otel-collector/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ compatibility with the old config group name: "otelAgent".
332332
The apiVersion for podDisruptionBudget policies.
333333
*/}}
334334
{{- define "splunk-otel-collector.PDB-apiVersion" -}}
335-
{{- if (semverCompare ">= 1.21.0" .Capabilities.KubeVersion.Version) -}}
335+
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
336336
{{- print "policy/v1" -}}
337337
{{- else -}}
338338
{{- print "policy/v1beta1" -}}

0 commit comments

Comments
 (0)