Skip to content

Commit 7068d7e

Browse files
KyriosGN0zeritti
andauthored
[prometheus-kafka-exporter] remove psp support, require K8s 1.25 (#6157)
Signed-off-by: AvivGuiser <[email protected]> Co-authored-by: zeritti <[email protected]>
1 parent 3a96cf8 commit 7068d7e

File tree

5 files changed

+13
-51
lines changed

5 files changed

+13
-51
lines changed

charts/prometheus-kafka-exporter/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ appVersion: "v1.9.0"
33
description: A Helm chart to export metrics from Kafka in Prometheus format using kafka_exporter from https://github.com/danielqsj/kafka_exporter
44
name: prometheus-kafka-exporter
55
home: https://github.com/danielqsj/kafka_exporter
6-
version: 2.18.0
7-
kubeVersion: ">=1.19.0-0"
6+
version: 3.0.0
7+
kubeVersion: ">=1.25.0-0"
88
sources:
99
- https://github.com/prometheus-community/helm-charts
1010
- https://github.com/danielqsj/kafka_exporter

charts/prometheus-kafka-exporter/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This chart bootstraps a [Kafka Exporter](https://github.com/danielqsj/kafka_expo
66

77
## Prerequisites
88

9-
- Kubernetes 1.19+
9+
- Kubernetes 1.25+
1010
- Helm 3
1111

1212
Helm v2 is no longer supported from chart version 2.0.0.
@@ -55,3 +55,13 @@ See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_h
5555
```console
5656
helm show values oci://ghcr.io/prometheus-community/charts/prometheus-kafka-exporter
5757
```
58+
59+
### Upgrading an existing Release to a new major version
60+
61+
A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.
62+
63+
#### 2.x to 3.x
64+
65+
From version 3.0.0, support for pod security policies was removed.
66+
67+
The minimum Kubernetes version required by the helm chart is 1.25.

charts/prometheus-kafka-exporter/templates/podsecuritypolicy.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

charts/prometheus-kafka-exporter/templates/role.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,4 @@ metadata:
88
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
99
heritage: {{ .Release.Service }}
1010
release: {{ .Release.Name }}
11-
{{- if and .Values.rbac.pspEnabled (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
12-
rules:
13-
- apiGroups: ['extensions']
14-
resources: ['podsecuritypolicies']
15-
verbs: ['use']
16-
resourceNames: [{{ template "prometheus-kafka-exporter.fullname" . }}]
17-
{{- end }}
1811
{{- end }}

charts/prometheus-kafka-exporter/values.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ sarama:
5454
rbac:
5555
# Specifies whether RBAC resources should be created
5656
create: true
57-
# Specifies whether a PodSecurityPolicy should be created
58-
pspEnabled: false
5957

6058
serviceAccount:
6159
# Specifies whether a ServiceAccount should be created

0 commit comments

Comments
 (0)