Skip to content

Commit

Permalink
Support overwire the cluster name by user defined (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu authored Jan 16, 2024
1 parent afee353 commit f20f8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/process/finders/kubernetes/finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (f *ProcessFinder) buildProcesses(p *process.Process, pc *PodContainer) ([]
return nil, err
}
// adding the cluster name into the service name
if f.clusterName != "" {
if f.clusterName != "" && !strings.Contains(entity.ServiceName, "::") {
entity.ServiceName = fmt.Sprintf("%s::%s", f.clusterName, entity.ServiceName)
}
processes = append(processes, NewProcess(p, cmdline, pc, entity))
Expand Down

0 comments on commit f20f8bc

Please sign in to comment.