cleaning up
parent
a0763f920d
commit
56b6ccdc67
|
|
@ -1,7 +1,6 @@
|
||||||
package k8s
|
package k8s
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/rs/zerolog/log"
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
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.
|
// List all HPAs in a given namespace.
|
||||||
func (h *HPAV2Beta1) List(ns string) (Collection, error) {
|
func (h *HPAV2Beta1) List(ns string) (Collection, error) {
|
||||||
log.Debug().Msg("!!!! YO V2B1")
|
|
||||||
|
|
||||||
rr, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(metav1.ListOptions{})
|
rr, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package k8s
|
package k8s
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/rs/zerolog/log"
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
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.
|
// List all HPAV2Beta2s in a given namespace.
|
||||||
func (h *HPAV2Beta2) List(ns string) (Collection, error) {
|
func (h *HPAV2Beta2) List(ns string) (Collection, error) {
|
||||||
log.Debug().Msg("!!!! YO V2B2")
|
|
||||||
rr, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(metav1.ListOptions{})
|
rr, err := h.DialOrDie().AutoscalingV2beta2().HorizontalPodAutoscalers(ns).List(metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ type HPAV1 struct {
|
||||||
|
|
||||||
// NewHPAV1List returns a new resource list.
|
// NewHPAV1List returns a new resource list.
|
||||||
func NewHPAV1List(c Connection, ns string) List {
|
func NewHPAV1List(c Connection, ns string) List {
|
||||||
log.Debug().Msg(">>> YO!!!")
|
|
||||||
return NewList(
|
return NewList(
|
||||||
ns,
|
ns,
|
||||||
"hpa",
|
"hpa",
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,6 @@ func (v *rbacView) clusterPolicies(name string) (resource.RowEvents, error) {
|
||||||
|
|
||||||
func (v *rbacView) namespacedPolicies(path string) (resource.RowEvents, error) {
|
func (v *rbacView) namespacedPolicies(path string) (resource.RowEvents, error) {
|
||||||
ns, na := namespaced(path)
|
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{})
|
cr, err := v.app.conn().DialOrDie().Rbac().Roles(ns).Get(na, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue