Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
return quietly on k8s fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
yolossn committed Sep 13, 2020
1 parent 642924a commit 41a36de
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkg/gui/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ func (gui *Gui) handleSecretSelect(v *gocui.View) error {
return nil
}



func (gui *Gui) handleServiceSelect(v *gocui.View) error {
// Find Selected Service
serviceSelected := gui.panelStates.Resource.SelectedLine
Expand Down Expand Up @@ -212,7 +210,6 @@ func (gui *Gui) handleServiceSelect(v *gocui.View) error {
return nil
}


func (gui *Gui) handlePodSelect(v *gocui.View) error {

// Find Selected Pod
Expand Down Expand Up @@ -340,7 +337,7 @@ func (gui *Gui) setPods(namespace string) {

pods, err := gui.k8sClient.ListPods(namespace)
if err != nil {

return
}
gui.data.PodData = pods
}
Expand All @@ -351,7 +348,7 @@ func (gui *Gui) setJobs(namespace string) {

jobs, err := gui.k8sClient.ListJobs(namespace)
if err != nil {

return
}
gui.data.JobData = jobs
}
Expand All @@ -373,7 +370,7 @@ func (gui *Gui) setConfigMaps(namespace string) {

configmaps, err := gui.k8sClient.ListConfigMap(namespace)
if err != nil {

return
}
gui.data.ConfigMapData = configmaps
}
Expand All @@ -384,7 +381,7 @@ func (gui *Gui) setSecrets(namespace string) {

secrets, err := gui.k8sClient.ListSecrets(namespace)
if err != nil {

return
}
gui.data.SecretData = secrets
}
Expand Down

0 comments on commit 41a36de

Please sign in to comment.