Skip to content

Commit bec8316

Browse files
update testdata with support to Prometheus Operator resources
1 parent c4294c6 commit bec8316

File tree

5 files changed

+19
-23
lines changed

5 files changed

+19
-23
lines changed

testdata/project-v2/config/default/kustomization.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ bases:
2020
#- ../webhook
2121
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
2222
#- ../certmanager
23+
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
24+
#- ../prometheus
2325

2426
patchesStrategicMerge:
2527
# Protect the /metrics endpoint by putting it behind auth.

testdata/project-v2/config/default/manager_prometheus_metrics_patch.yaml

-19
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- monitor.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# Prometheus Monitor Service (Metrics)
3+
apiVersion: monitoring.coreos.com/v1
4+
kind: ServiceMonitor
5+
metadata:
6+
labels:
7+
control-plane: controller-manager
8+
name: controller-manager-metrics-monitor
9+
namespace: system
10+
spec:
11+
endpoints:
12+
- path: /metrics
13+
port: https
14+
selector:
15+
control-plane: controller-manager

testdata/project-v2/config/rbac/auth_proxy_service.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
annotations:
5-
prometheus.io/port: "8443"
6-
prometheus.io/scheme: https
7-
prometheus.io/scrape: "true"
84
labels:
95
control-plane: controller-manager
106
name: controller-manager-metrics-service

0 commit comments

Comments
 (0)