Skip to content

Commit

Permalink
prometheus-operator: add EndpointSlices for operator to support K8s 1…
Browse files Browse the repository at this point in the history
….22+ (#2948)

* add EndpointSlices for operator to support K8s 1.22+

Signed-off-by: Paul Rudnitskiy <[email protected]>

* bump chart version fix to resolve conflicts

Signed-off-by: Paul Rudnitskiy <[email protected]>

---------

Signed-off-by: Paul Rudnitskiy <[email protected]>
Signed-off-by: Pavel Rudnitskiy <[email protected]>
Signed-off-by: André Bauer <[email protected]>
Co-authored-by: André Bauer <[email protected]>
  • Loading branch information
prudnitskiy and monotek authored Mar 8, 2023
1 parent 94b4d61 commit 0e2aa2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 45.7.0
version: 45.7.1
appVersion: v0.63.0
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,14 @@ rules:
- get
- list
- watch
{{- if .Capabilities.APIVersions.Has "discovery.k8s.io/v1/EndpointSlice" }}
- apiGroups:
- discovery.k8s.io
resources:
- endpointslices
verbs:
- get
- list
- watch
{{- end }}
{{- end }}

0 comments on commit 0e2aa2e

Please sign in to comment.