remove unnecessary call to autoscaling/v2beta2/hpa api.

mine
Gustavo Paiva 2019-10-24 00:06:00 -03:00
parent 4c0b02e9d2
commit 7751531d0d
1 changed files with 0 additions and 10 deletions

View File

@ -1,7 +1,6 @@
package k8s
import (
"github.com/rs/zerolog/log"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
@ -36,15 +35,6 @@ func (h *HorizontalPodAutoscalerV1) List(ns string) (Collection, error) {
cc[i] = r
}
rr1, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(opts)
if err != nil {
return nil, err
}
for _, r := range rr1.Items {
log.Debug().Msgf("MX %#v", len(r.Spec.Metrics))
log.Debug().Msgf("HPA:%#v -- %s", r.TypeMeta.Kind, r.Name)
}
return cc, nil
}