Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 28e6e1a

Browse files
committed
🚩 Put the Prometheus and Grafana components behind a feature toggle
1 parent 1a90f05 commit 28e6e1a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

helm/templates/grafana.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.components.grafana.enabled true }}
12
---
23
apiVersion: apps/v1
34
kind: Deployment
@@ -253,4 +254,5 @@ spec:
253254
- ipBlock:
254255
# grafana.com
255256
cidr: 34.120.177.193/0
257+
{{- end }}
256258
{{- end }}

helm/templates/metrics-kube-state.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.components.prometheus.enabled true }}
12
---
23
apiVersion: v1
34
kind: ServiceAccount
@@ -82,4 +83,5 @@ spec:
8283
- to:
8384
- ipBlock:
8485
cidr: 0.0.0.0/0
86+
{{- end }}
8587
{{- end }}

helm/templates/prometheus.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if eq .Values.components.prometheus.enabled true }}
12
---
23
apiVersion: apps/v1
34
kind: Deployment
@@ -89,4 +90,5 @@ spec:
8990
- podSelector:
9091
matchLabels:
9192
app: prometheus-kube-state-metrics
93+
{{- end }}
9294
{{- end }}

0 commit comments

Comments
 (0)