Skip to content

Commit

Permalink
update testdata with support to Prometheus Operator resources
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamacedo86 committed Oct 12, 2019
1 parent c4294c6 commit bec8316
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
2 changes: 2 additions & 0 deletions testdata/project-v2/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ bases:
#- ../webhook
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required.
#- ../certmanager
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus

patchesStrategicMerge:
# Protect the /metrics endpoint by putting it behind auth.
Expand Down

This file was deleted.

2 changes: 2 additions & 0 deletions testdata/project-v2/config/prometheus/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- monitor.yaml
15 changes: 15 additions & 0 deletions testdata/project-v2/config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

# Prometheus Monitor Service (Metrics)
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
control-plane: controller-manager
name: controller-manager-metrics-monitor
namespace: system
spec:
endpoints:
- path: /metrics
port: https
selector:
control-plane: controller-manager
4 changes: 0 additions & 4 deletions testdata/project-v2/config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/port: "8443"
prometheus.io/scheme: https
prometheus.io/scrape: "true"
labels:
control-plane: controller-manager
name: controller-manager-metrics-service
Expand Down

0 comments on commit bec8316

Please sign in to comment.