Skip to content

Commit d6efbc2

Browse files
benluddyfantapsody
authored andcommitted
Resurrect deleted metrics Service templates.
The olm-operator-metrics and catalog-operator-metrics services were deleted as part of a removal of OpenShift-specific content, but they are still necessary when monitoring is enabled. Signed-off-by: Ben Luddy <[email protected]>
1 parent b160c21 commit d6efbc2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{{ if .Values.monitoring.enabled }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: olm-operator-metrics
6+
namespace: {{ .Values.namespace }}
7+
annotations:
8+
service.alpha.openshift.io/serving-cert-secret-name: olm-operator-serving-cert
9+
labels:
10+
app: olm-operator
11+
spec:
12+
type: ClusterIP
13+
ports:
14+
- name: https-metrics
15+
port: 8081
16+
protocol: TCP
17+
targetPort: metrics
18+
selector:
19+
app: olm-operator
20+
---
21+
apiVersion: v1
22+
kind: Service
23+
metadata:
24+
name: catalog-operator-metrics
25+
namespace: {{ .Values.namespace }}
26+
annotations:
27+
service.alpha.openshift.io/serving-cert-secret-name: catalog-operator-serving-cert
28+
labels:
29+
app: catalog-operator
30+
spec:
31+
type: ClusterIP
32+
ports:
33+
- name: https-metrics
34+
port: 8081
35+
protocol: TCP
36+
targetPort: metrics
37+
selector:
38+
app: catalog-operator
39+
{{ end }}

0 commit comments

Comments
 (0)