plusserver / kubernetes-icinga

Kubernetes / Icinga2 integration.
Apache License 2.0
22 stars 8 forks source link

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

Open markvr opened 4 years ago

markvr commented 4 years ago

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?!