Skip to content

Commit 2c812aa

Browse files
authored
move service to kustomize manager dir, rename for general purpose use (#1544)
Signed-off-by: Joe Lanford <[email protected]>
1 parent de6a813 commit 2c812aa

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
resources:
2-
- manager.yaml
31
apiVersion: kustomize.config.k8s.io/v1beta1
42
kind: Kustomization
3+
4+
resources:
5+
- manager.yaml
6+
- service.yaml
7+
58
images:
69
- name: controller
710
newName: quay.io/operator-framework/operator-controller
8-
newTag: devel
11+
newTag: devel

config/base/rbac/auth_proxy_service.yaml renamed to config/base/manager/service.yaml

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/base/rbac/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ resources:
2323
# can access the metrics endpoint. Comment the following
2424
# permissions if you want to disable this protection.
2525
# More info: https://book.kubebuilder.io/reference/metrics.html
26-
- auth_proxy_service.yaml
2726
- auth_proxy_role.yaml
2827
- auth_proxy_role_binding.yaml
2928
- auth_proxy_client_clusterrole.yaml

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)