Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay committed Aug 2, 2023
1 parent 9df3098 commit 0df4370
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 84 deletions.
2 changes: 1 addition & 1 deletion pkg/collector/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func getPrometheusExporterPorts(c map[interface{}]interface{}) ([]corev1.Contain
}
ports = append(ports,
corev1.ContainerPort{
Name: naming.PortName(exporterName),
Name: naming.PortName(exporterName, containerPort),
ContainerPort: containerPort,
Protocol: corev1.ProtocolTCP,
},
Expand Down
40 changes: 0 additions & 40 deletions pkg/naming/ports.go

This file was deleted.

43 changes: 0 additions & 43 deletions pkg/naming/ports_test.go

This file was deleted.

0 comments on commit 0df4370

Please sign in to comment.