diff --git a/main.go b/main.go index 60c9527..89a4232 100644 --- a/main.go +++ b/main.go @@ -64,27 +64,6 @@ func getPhysicalMachines(machineType string) []string { } -func getPods(machineType string) []string { - var pods []string - home, _ := homedir.Dir() - files, err := ioutil.ReadDir(home+"/wit/docs/usw2/") - if err != nil { - log.Println(err) - return pods - } - - for _, f := range files { - s := strings.Split(f.Name(), ".") - if strings.HasSuffix(f.Name(), machineType) { - fmt.Println("Adding k8s pod: ", f.Name(), s) - pods = append(pods, f.Name()) - } else { - fmt.Println("Ignoring: ", f.Name(), s) - } - } - return pods -} - func makeButtonsPage(names []string) ui.Control { vbox := ui.NewVerticalBox() vbox.SetPadded(true) @@ -284,23 +263,17 @@ func setupUI() { mainwin.SetChild(tab) mainwin.SetMargined(true) - tab.Append("Hypervisors", makeButtonsPage(getPhysicalMachines("h"))) + tab.Append("v000185.testing.com.customers.wprod.wit.com", maketable()) tab.SetMargined(0, true) - tab.Append("Ceph", makeButtonsPage(getPhysicalMachines("d"))) + tab.Append("Hypervisors", makeButtonsPage(getPhysicalMachines("h"))) tab.SetMargined(1, true) - tab.Append("k8s Pods", makeButtonsPage(getPods(".wit.com"))) + tab.Append("VMs", makeNumbersPage()) tab.SetMargined(2, true) - tab.Append("VMs", makeNumbersPage()) - tab.SetMargined(3, true) - tab.Append("Data Choosers", makeDataChoosersPage()) - tab.SetMargined(4, true) - - tab.Append("Table Test", maketable()) - tab.SetMargined(5, true) + tab.SetMargined(3, true) mainwin.Show() }