Skip to content

Commit

Permalink
Kubedb -> KubeDB
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <[email protected]>
  • Loading branch information
RokibulHasan7 committed Mar 11, 2024
1 parent 0efafb8 commit 76fddf4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/menu/coomplete_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package menu

import (
"sort"
"strings"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/discovery"
Expand Down Expand Up @@ -57,6 +58,16 @@ func GenerateCompleteMenu(kc client.Client, disco discovery.ServerResourcesInter
Name: menuoutlines.MenuSectionName(group),
},
}

// Kubedb -> KubeDB
if strings.Contains(strings.ToLower(sec.Name), "kubedb") {
sec.Name = strings.Replace(sec.Name, "Kubedb", "KubeDB", 1)
}
// Kubedb op -> KubeDB Ops
if strings.Contains(strings.ToLower(sec.Name), "op") {
sec.Name = strings.Replace(sec.Name, "Op", "Ops", 1)
}

if icons, ok := sectionIcons[group]; ok {
sec.Icons = icons
} else {
Expand Down

0 comments on commit 76fddf4

Please sign in to comment.