Skip to content

Commit

Permalink
Add ns selector to cache sm (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough authored Feb 12, 2025
1 parent c6c9c35 commit ec61678
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions magefiles/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ func createCacheServiceMonitor(config *memcachedConfig) *monitoringv1.ServiceMon
Selector: metav1.LabelSelector{
MatchLabels: config.Labels,
},
NamespaceSelector: monitoringv1.NamespaceSelector{
MatchNames: []string{config.Namespace},
},
},
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ objects:
interval: 30s
path: /metrics
port: metrics
namespaceSelector: {}
namespaceSelector:
matchNames:
- rhobs-stage
selector:
matchLabels:
app.kubernetes.io/component: api-memcached
Expand Down

0 comments on commit ec61678

Please sign in to comment.