Merge pull request #385 from paivagustavo/fix-hpa

remove unnecessary call to autoscaling/v2beta2/hpa api.
mine
Fernand Galiana 2019-10-25 09:45:18 -06:00 committed by GitHub
commit 7ea5252497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}