lint fixes (#14)

* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-21 14:53:21 +03:00
committed by GitHub
parent 199ff66bd4
commit c4a303190a
42 changed files with 95 additions and 178 deletions

View File

@@ -31,7 +31,7 @@ func (k *klog) podLogStream(podName string, stream *kubeStream) {
}, client.LogParams(p))
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
fmt.Fprintf(os.Stderr, "%v", err)
return
}
@@ -120,7 +120,7 @@ func (k *klog) Read(options ...log.ReadOption) ([]log.Record, error) {
logParams["tailLines"] = strconv.Itoa(opts.Count)
}
if opts.Stream == true {
if opts.Stream {
logParams["follow"] = "true"
}

View File

@@ -13,11 +13,8 @@ import (
)
func TestKubernetes(t *testing.T) {
// TODO: fix local test running
return
if os.Getenv("IN_TRAVIS_CI") == "yes" {
t.Skip("In Travis CI")
if len(os.Getenv("IN_TRAVIS_CI")) > 0 {
t.Skip()
}
k := NewLog(log.Name("micro-network"))