Log k8s requests
This commit is contained in:
parent
616db3442a
commit
bb25bd94c8
@ -38,8 +38,6 @@ func (k *kubernetes) namespaceExists(name string) (bool, error) {
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
k.namespaces = namespaceList.Items
|
k.namespaces = namespaceList.Items
|
||||||
fmt.Println("HERE")
|
|
||||||
fmt.Println(k.namespaces)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the namespace exists in the cache
|
// check if the namespace exists in the cache
|
||||||
|
@ -9,6 +9,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
|
"github.com/micro/go-micro/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Request is used to construct a http request for the k8s API.
|
// Request is used to construct a http request for the k8s API.
|
||||||
@ -217,6 +219,7 @@ func (r *Request) Do() *Response {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Debugf("[%v] %v", req.Method, req.URL.String())
|
||||||
res, err := r.client.Do(req)
|
res, err := r.client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &Response{
|
return &Response{
|
||||||
|
Loading…
Reference in New Issue
Block a user