Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronoff97 committed Aug 1, 2023
1 parent cf38d7b commit 4a73d85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/reconcileutil/naming/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ package naming
import (
"strings"
"unicode/utf8"

"github.com/open-telemetry/opentelemetry-operator/pkg/naming"
)

// PortName returns a dns-safe string for the given name.
Expand All @@ -29,7 +27,7 @@ func PortName(name string) string {
var d []rune

for i, x := range strings.ToLower(name) {
if naming.regex.Match([]byte(string(x))) {
if regex.Match([]byte(string(x))) {
d = append(d, x)
} else if i == 0 || i == utf8.RuneCountInString(name)-1 {
d = append(d, 'a')
Expand Down

0 comments on commit 4a73d85

Please sign in to comment.