Skip to content

Commit

Permalink
move cluster lifecycle service monitor to component namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Le <[email protected]>
  • Loading branch information
elgnay committed Sep 26, 2023
1 parent 646f3be commit 840fa54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/backplaneconfig_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ var _ = Describe("BackplaneConfig controller", func() {
ctx := context.Background()
u := &unstructured.Unstructured{}
u.SetName("clusterlifecycle-state-metrics-v2")
u.SetNamespace("openshift-monitoring")
u.SetNamespace(DestinationNamespace)
u.SetGroupVersionKind(schema.GroupVersionKind{
Group: "monitoring.coreos.com",
Kind: "ServiceMonitor",
Expand All @@ -459,7 +459,7 @@ var _ = Describe("BackplaneConfig controller", func() {
ctx := context.Background()
namespacedName := types.NamespacedName{
Name: "clusterlifecycle-state-metrics-v2",
Namespace: "openshift-monitoring",
Namespace: DestinationNamespace,
}
resourceType := &monitoringv1.ServiceMonitor{}
return k8sClient.Get(ctx, namespacedName, resourceType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: clusterlifecycle-state-metrics-v2
namespace: openshift-monitoring
namespace: {{ .Values.global.namespace }}
spec:
endpoints:
- interval: 60s
Expand Down

0 comments on commit 840fa54

Please sign in to comment.