cleaning up

mine
derailed 2019-03-30 17:09:26 -06:00
parent a0763f920d
commit 56b6ccdc67
4 changed files with 0 additions and 7 deletions

View File

@ -1,7 +1,6 @@
package k8s
import (
"github.com/rs/zerolog/log"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@ -22,8 +21,6 @@ func (h *HPAV2Beta1) Get(ns, n string) (interface{}, error) {
// List all HPAs in a given namespace.
func (h *HPAV2Beta1) List(ns string) (Collection, error) {
log.Debug().Msg("!!!! YO V2B1")
rr, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(metav1.ListOptions{})
if err != nil {
return nil, err

View File

@ -1,7 +1,6 @@
package k8s
import (
"github.com/rs/zerolog/log"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@ -24,7 +23,6 @@ func (h *HPAV2Beta2) Get(ns, n string) (interface{}, error) {
// List all HPAV2Beta2s in a given namespace.
func (h *HPAV2Beta2) List(ns string) (Collection, error) {
log.Debug().Msg("!!!! YO V2B2")
rr, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(metav1.ListOptions{})
if err != nil {
return nil, err

View File

@ -16,7 +16,6 @@ type HPAV1 struct {
// NewHPAV1List returns a new resource list.
func NewHPAV1List(c Connection, ns string) List {
log.Debug().Msg(">>> YO!!!")
return NewList(
ns,
"hpa",

View File

@ -221,7 +221,6 @@ func (v *rbacView) clusterPolicies(name string) (resource.RowEvents, error) {
func (v *rbacView) namespacedPolicies(path string) (resource.RowEvents, error) {
ns, na := namespaced(path)
log.Debug().Msgf("!!!! YO %s %s", ns, na)
cr, err := v.app.conn().DialOrDie().Rbac().Roles(ns).Get(na, metav1.GetOptions{})
if err != nil {
return nil, err