Skip to content

Commit 7a6c589

Browse files
author
ikethecoder
committed
upd namespace matching
1 parent d40ca15 commit 7a6c589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metrics-proxy/internal/pkg/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func ParseConfig(location *string) (*LabelNamespaceMap, error) {
6666

6767
// Find the tag that starts with ns.*
6868
for _, tag := range svc.Tags {
69-
if strings.HasPrefix (tag, "ns.") {
69+
if strings.HasPrefix (tag, "ns.") && strings.Count (tag, ".") == 1 {
7070
var nsTag = strings.TrimPrefix (tag, "ns.")
7171
log.Debug("Service=", svc.Name, " Namespace=", nsTag)
7272

0 commit comments

Comments
 (0)