Skip to content

Commit

Permalink
Update SM namespace (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough authored Jan 17, 2025
1 parent 8b0691a commit d3f30bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions magefiles/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func postProcessServiceMonitor(serviceMonitor *monv1.ServiceMonitor, namespaceSe
openShiftClusterMonitoringLabelValue = "app-sre"
)

serviceMonitor.ObjectMeta.Namespace = "openshift-customer-monitoring"
serviceMonitor.Spec.NamespaceSelector.MatchNames = []string{namespaceSelector}
serviceMonitor.ObjectMeta.Labels[openshiftCustomerMonitoringLabel] = openShiftClusterMonitoringLabelValue
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ objects:
app.kubernetes.io/part-of: observatorium
prometheus: app-sre
name: alertmanager
namespace: rhobs-stage
namespace: openshift-customer-monitoring
spec:
endpoints:
- port: http
Expand Down

0 comments on commit d3f30bc

Please sign in to comment.