Skip to content

Commit

Permalink
Fixed safe name
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Jul 23, 2024
1 parent 9f2adb6 commit 34834f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/cloud.redhat.com/providers/kafka/msk.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package kafka
import (
"encoding/json"
"fmt"
"regexp"
"strconv"
"strings"

Expand Down Expand Up @@ -123,6 +124,7 @@ func (s *mskProvider) copyGenericSecret(obj object.ClowdObject, source, dest crd

func (s *mskProvider) createConnectSecret() error {
secName := s.getConnectClusterUserName()
secName = regexp.MustCompile(`[^a-z0-9-]`).ReplaceAllString(strings.ToLower(secName), "-")

newPullSecObj := &core.Secret{}

Expand Down

0 comments on commit 34834f4

Please sign in to comment.