Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building: cannot convert klog.V(9) (type klog.Verbose) to type bool #11

Open
markvr opened this issue Dec 20, 2019 · 0 comments

Comments

@markvr
Copy link

markvr commented Dec 20, 2019

When building using the Dockerfile I get the errors below.
I'm trying to build this from source because I need to add the authentication plugins

 docker build -t foo .
Sending build context to Docker daemon  415.2kB
Step 1/9 : FROM golang:latest AS build
 ---> a1072a078890
Step 2/9 : WORKDIR /go/src/github.com/Nexinto/kubernetes-icinga
 ---> Using cache
 ---> 963059b61f67
Step 3/9 : COPY . .
 ---> Using cache
 ---> 357a1ffe1522
Step 4/9 : RUN go get k8s.io/client-go/...
 ---> Running in 1519be178146
# k8s.io/client-go/transport
/go/src/k8s.io/client-go/transport/round_trippers.go:70:11: cannot convert klog.V(9) (type klog.Verbose) to type bool
/go/src/k8s.io/client-go/transport/round_trippers.go:72:11: cannot convert klog.V(8) (type klog.Verbose) to type bool
/go/src/k8s.io/client-go/transport/round_trippers.go:74:11: cannot convert klog.V(7) (type klog.Verbose) to type bool
/go/src/k8s.io/client-go/transport/round_trippers.go:76:11: cannot convert klog.V(6) (type klog.Verbose) to type bool
# k8s.io/utils/trace
/go/src/k8s.io/utils/trace/trace.go:100:57: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
/go/src/k8s.io/utils/trace/trace.go:112:56: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
The command '/bin/sh -c go get k8s.io/client-go/...' returned a non-zero code: 2

I'm totally new to Go, any ideas?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant