Aws-iam-authenticator: commit 7eb3cead25ea06daf5c5191b231534db50b2cd43 breaks "go get "

Created on 18 Jun 2019  路  6Comments  路  Source: kubernetes-sigs/aws-iam-authenticator

the following command now fails:
go get -u -v github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator

this is blocking my CI/CD pipeline -- would you please help me figure out how to fix?

I see the following error:
...
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/client_golang/prometheus/internal
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/common/model
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/client
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/private/protocol
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/corehandlers
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/private/protocol/rest
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/signer/v4
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/private/protocol/query
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/csm
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/service/sts
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/defaults
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/service/ec2
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/aws/session
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/common/expfmt
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/procfs/internal/util
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/procfs/nfs
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/procfs/xfs
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/procfs
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/client_golang/prometheus
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/prometheus/client_golang/prometheus/promhttp
sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions
sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/utils/pointer
sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1
sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/scheme
sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1
sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/gofrs/flock
sigs.k8s.io/aws-iam-authenticator/pkg/token
sigs.k8s.io/aws-iam-authenticator/vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface
sigs.k8s.io/aws-iam-authenticator/pkg/server
github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator

github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator

/usr/local/gopath/src/github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator/root.go:68:18: cannot use config.DefaultFeatureGates (type map["sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".Feature]"sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/component-base/featuregat
e".FeatureSpec) as type map["github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".Feature]"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".FeatureSpec in argument to featureGates.Add
/usr/local/gopath/src/github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator/root.go:96:15: cannot use featureGates (type *"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".featureGate) as type "sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/component-base
/featuregate".MutableFeatureGate in field value:
*"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".featureGate does not implement "sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".MutableFeatureGate (wrong type for Add method)
have Add(map["github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".Feature]"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".FeatureSpec) error
want Add(map["sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".Feature]"sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/component-base/featuregate".FeatureSpec) error
/usr/local/gopath/src/github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator/server.go:82:43: cannot use k8sconfig (type *"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/client-go/rest".Config) as type *"sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/client-go/rest".Config in argum
ent to versioned.NewForConfig
/usr/local/gopath/src/github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator/server.go:89:26: cannot use kubeClient (type "github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/client-go/kubernetes".Interface) as type "sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/client-go/kubernetes".I
nterface in argument to controller.New:
"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/client-go/kubernetes".Interface does not implement "sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/client-go/kubernetes".Interface (wrong type for AdmissionregistrationV1beta1 method)
have AdmissionregistrationV1beta1() "github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1".AdmissionregistrationV1beta1Interface
want AdmissionregistrationV1beta1() "sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1".AdmissionregistrationV1beta1Interface
/usr/local/gopath/src/github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator/server.go:102:56: cannot use []"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/apimachinery/pkg/runtime".Object literal (type []"github.com/kubernetes-sigs/aws-iam-authenticator/vendor/k8s.io/apimachinery/p
kg/runtime".Object) as type []"sigs.k8s.io/aws-iam-authenticator/vendor/k8s.io/apimachinery/pkg/runtime".Object in argument to "sigs.k8s.io/aws-iam-authenticator/pkg/generated/clientset/versioned/fake".NewSimpleClientset

MSG:

non-zero return code

lifecyclstale

Most helpful comment

I'm seeing the same issue. I did some research and it looks like go get doesn't allow you to specify a commit to pull (it just grabs HEAD by default). If a fix isn't in progress, can anybody recommend a temporary workaround outside of forking the repo?

I managed to work around this by pulling the pre-compiled binary:

curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.12.7/2019-03-27/bin/linux/amd64/aws-iam-authenticator
chmod +x ./aws-iam-authenticator
mkdir -p $HOME/bin && cp ./aws-iam-authenticator $HOME/bin/aws-iam-authenticator && export PATH=$HOME/bin:$PATH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc

From this documentation

All 6 comments

I'm seeing the same issue. I did some research and it looks like go get doesn't allow you to specify a commit to pull (it just grabs HEAD by default). If a fix isn't in progress, can anybody recommend a temporary workaround outside of forking the repo?

I managed to work around this by pulling the pre-compiled binary:

curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.12.7/2019-03-27/bin/linux/amd64/aws-iam-authenticator
chmod +x ./aws-iam-authenticator
mkdir -p $HOME/bin && cp ./aws-iam-authenticator $HOME/bin/aws-iam-authenticator && export PATH=$HOME/bin:$PATH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc

From this documentation

nice! thanks for this! I used a different workaround last night. Here is the bit of ansible that fixed it for me! (it seems like you need go 1.11 modules for this)

  • name: Go Get {{item.name}}
    shell: "env GO111MODULE=on GOPATH={{gopath}} {{golang}} get -u -v {{item.url}}@{{item.branch}}"
    with_items:

    • name: aws-iam-authenticator

      url: github.com/kubernetes-sigs/aws-iam-authenticator/cmd/aws-iam-authenticator

      branch: v0.4.0

You can switch your go get From github.com to go get sigs.k8s.io/aws-iam-authenticator/cmd/aws-iam-authenticator And everything should work. The commit you are referencing switched import paths to use the shorter sigs.k8s.io CNAME.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

/close

@nckturner: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RaphaelHerd picture RaphaelHerd  路  9Comments

dansepp picture dansepp  路  3Comments

0xdabbad00 picture 0xdabbad00  路  7Comments

chris-codaio picture chris-codaio  路  9Comments

wbauern picture wbauern  路  4Comments