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

Building against kubernetes v1.5.3 client version is broken #60

Closed
jescarri opened this issue Apr 4, 2017 · 2 comments
Closed

Building against kubernetes v1.5.3 client version is broken #60

jescarri opened this issue Apr 4, 2017 · 2 comments

Comments

@jescarri
Copy link
Contributor

jescarri commented Apr 4, 2017

gofmt -w=true -s $(find . -type f -name '*.go' -not -path "./vendor/*")
goimports -w=true -d $(find . -type f -name '*.go' -not -path "./vendor/*")
go build -o build/bin/darwin/kube2iam -ldflags "-s -X ""github.com/jtblin"/kube2iam"/version.Version=$(git describe --abbrev=0 --tags) -X ""github.com/jtblin"/kube2iam"/version.GitCommit=$(git rev-parse --short HEAD) -X ""github.com/jtblin"/kube2iam"/version.BuildDate=$(date +%Y-%m-%d-%H:%M)" github.com/jtblin/kube2iam
# github.com/jtblin/kube2iam/cmd
cmd/k8s.go:20: undefined: "github.com/jtblin/kube2iam/vendor/k8s.io/kubernetes/pkg/client/unversioned".Client
make: *** [build] Error 2```

After running 
```glide get github.com/aws/aws-sdk-go/blob/master/aws/ec2metadata#^v1.0.8```

doing a diff to glide.lock I found that it was never updated to v1.5.3

-- name: k8s.io/client-go

  • version: 6631b2769fbf8fd8ff6b2074d64774b010c7d37a
  • subpackages:
    • 1.4/pkg/api
    • 1.4/pkg/api/endpoints
    • 1.4/pkg/api/errors
    • 1.4/pkg/api/meta
    • 1.4/pkg/api/meta/metatypes
    • 1.4/pkg/api/pod
    • 1.4/pkg/api/resource
    • 1.4/pkg/api/service
    • 1.4/pkg/api/unversioned
    • 1.4/pkg/api/unversioned/validation
    • 1.4/pkg/api/util
    • 1.4/pkg/api/v1
    • 1.4/pkg/api/validation
    • 1.4/pkg/apimachinery
    • 1.4/pkg/apimachinery/registered
    • 1.4/pkg/apis/autoscaling
    • 1.4/pkg/apis/batch
    • 1.4/pkg/apis/extensions
    • 1.4/pkg/auth/user
    • 1.4/pkg/capabilities
    • 1.4/pkg/conversion
    • 1.4/pkg/conversion/queryparams
    • 1.4/pkg/fields
    • 1.4/pkg/labels
    • 1.4/pkg/runtime
    • 1.4/pkg/runtime/serializer
    • 1.4/pkg/runtime/serializer/json
    • 1.4/pkg/runtime/serializer/protobuf
    • 1.4/pkg/runtime/serializer/recognizer
    • 1.4/pkg/runtime/serializer/streaming
    • 1.4/pkg/runtime/serializer/versioning
    • 1.4/pkg/security/apparmor
    • 1.4/pkg/selection
    • 1.4/pkg/third_party/forked/golang/reflect
    • 1.4/pkg/types
    • 1.4/pkg/util
@jtblin
Copy link
Owner

jtblin commented Apr 25, 2017

Client version has been downgraded to 1.4.6 as part of 0.5.0

@jtblin
Copy link
Owner

jtblin commented Apr 25, 2017

The kubernetes client code has moved to https://github.com/kubernetes/client-go/ so I updated the code to use it instead of the main kubernetes project directly as before: 68ab0a8

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

2 participants