Skip to content

Commit c4a6850

Browse files
committed
move service to kustomize manager dir, rename for general purpose use
Signed-off-by: Joe Lanford <[email protected]>
1 parent de6a813 commit c4a6850

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4+
name: service
5+
namespace: system
46
labels:
57
control-plane: operator-controller-controller-manager
6-
name: controller-manager-metrics-service
7-
namespace: system
88
spec:
99
ports:
1010
- name: https

config/components/tls/resources/manager_cert.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ metadata:
55
spec:
66
secretName: olmv1-cert
77
dnsNames:
8-
- operator-controller.olmv1-system.svc
9-
- operator-controller.olmv1-system.svc.cluster.local
10-
- operator-controller-controller-manager-metrics-service.olmv1-system.svc
11-
- operator-controller-controller-manager-metrics-service.olmv1-system.svc.cluster.local
8+
- operator-controller-service.olmv1-system.svc
9+
- operator-controller-service.olmv1-system.svc.cluster.local
1210
privateKey:
1311
algorithm: ECDSA
1412
size: 256

test/e2e/metrics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func TestOperatorControllerMetricsExportedEndpoint(t *testing.T) {
9898
require.NoError(t, waitErr, "Error waiting for curl pod to be ready: %s", string(waitOutput))
9999

100100
t.Log("Validating the metrics endpoint")
101-
metricsURL := "https://operator-controller-controller-manager-metrics-service." + namespace + ".svc.cluster.local:8443/metrics"
101+
metricsURL := "https://operator-controller-service." + namespace + ".svc.cluster.local:8443/metrics"
102102
curlCmd := exec.Command(client, "exec", curlPod, "-n", namespace, "--",
103103
"curl", "-v", "-k", "-H", "Authorization: Bearer "+token, metricsURL)
104104
output, err = curlCmd.CombinedOutput()

0 commit comments

Comments
 (0)