From e29481450d1baac5742be293626a4c0f26fdd6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Wed, 6 Mar 2024 11:28:46 +0100 Subject: [PATCH] removes debug print --- .../gardener_cluster_controller_test.go | 1 - metrics-service.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 metrics-service.yaml diff --git a/internal/controller/gardener_cluster_controller_test.go b/internal/controller/gardener_cluster_controller_test.go index c2e25755..5abbbd2e 100644 --- a/internal/controller/gardener_cluster_controller_test.go +++ b/internal/controller/gardener_cluster_controller_test.go @@ -89,7 +89,6 @@ var _ = Describe("Gardener Cluster controller", func() { Eventually(func() bool { err := k8sClient.Get(context.Background(), secretKey, &kubeconfigSecret) secretNotFound := err != nil && k8serrors.IsNotFound(err) - fmt.Printf("\nEventually->Wait for secret deletion->secretDeleted:%v", secretNotFound) return secretNotFound }, time.Minute*30, time.Second*3).Should(BeTrue()) diff --git a/metrics-service.yaml b/metrics-service.yaml new file mode 100644 index 00000000..8d47b669 --- /dev/null +++ b/metrics-service.yaml @@ -0,0 +1,42 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + kubectl.kubernetes.io/last-applied-configuration: | + {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app.kubernetes.io/component":"kube-rbac-proxy","app.kubernetes.io/created-by":"infrastructure-manager","app.kubernetes.io/instance":"infrastructure-manager-metrics-service","app.kubernetes.io/managed-by":"kustomize","app.kubernetes.io/name":"service","app.kubernetes.io/part-of":"infrastructure-manager","control-plane":"infrastructure-manager"},"name":"infrastructure-manager-infrastructure-manager-metrics-service","namespace":"kcp-system"},"spec":{"ports":[{"name":"https","port":8443,"protocol":"TCP","targetPort":"https"}],"selector":{"control-plane":"infrastructure-manager"}}} + creationTimestamp: "2024-02-29T13:34:21Z" + labels: + app.kubernetes.io/component: kube-rbac-proxy + app.kubernetes.io/created-by: infrastructure-manager + app.kubernetes.io/instance: infrastructure-manager-metrics-service + app.kubernetes.io/managed-by: kustomize + app.kubernetes.io/name: service + app.kubernetes.io/part-of: infrastructure-manager + control-plane: infrastructure-manager + name: infrastructure-manager-infrastructure-manager-metrics-service + namespace: kcp-system + resourceVersion: "1700" + uid: 71841a36-16cc-440c-a1eb-e7b298a7f16b +spec: + clusterIP: 10.43.37.224 + clusterIPs: + - 10.43.37.224 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - name: https + port: 8443 + protocol: TCP + targetPort: https + - name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + control-plane: infrastructure-manager + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {}