Giter Club home page Giter Club logo

Comments (10)

stoiev avatar stoiev commented on July 19, 2024 4

Maybe orb could freeze this binary in lastest version in every release? In CIs, it seems preferable to choose stability over other trade offs.

from aws-eks-orb.

jazzywhit avatar jazzywhit commented on July 19, 2024 2

Just found out that aws-eks: circleci/[email protected] will work now, as they removed the indirect reference in the bash script. So now if you use that version you just need to set the tag version without jumping through hoops!

      - aws-eks/update-container-image:
          name: name
          authenticator-release-tag: "0.6.11"

from aws-eks-orb.

russellraed avatar russellraed commented on July 19, 2024 1

Work-around for the meantime, i've added this. Which installs aws-iam-authenticator and kubectl manually:

      - run:
          command: |
            curl -o aws-iam-authenticator https://s3.us-west-2.amazonaws.com/amazon-eks/1.21.2/2021-07-05/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=$PATH:$HOME/bin
            echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
            aws-iam-authenticator help
            curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
            sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
            kubectl version --client

Add this before aws-eks/update-kubeconfig-with-authenticator step

from aws-eks-orb.

jazzywhit avatar jazzywhit commented on July 19, 2024 1

I have another work around, although I still think that the original bash script should be fixed...

Add an environment varible to your Circle CI project called AWS_AUTHENTICATOR_VARIABLE (or whatever you want) that resolves to the target version. In my case I needed to use 0.6.11 because 0.6.12 is missing binaries.

In your Workflow jobs set authenticator-release-tag: "AWS_AUTHENTICATOR_VARIABLE" like so:

      - aws-eks/update-container-image:
          name: name
          authenticator-release-tag: "AWS_AUTHENTICATOR_VARIABLE"

Then in your jobs where you are defining your Docker image do something like this:

  run_command:
    docker:
      - image: "cimg/python:3.11.4"
        environment:
          AWS_AUTHENTICATOR_VARIABLE: $AWS_AUTHENTICATOR_VARIABLE

This will ensure that you can set the variable on the project, and then you can properly get around the indirect reference in the bash script.

from aws-eks-orb.

milosivanovic avatar milosivanovic commented on July 19, 2024

Supposedly the following should fix it (by locking to the previous release), but it doesn't appear to work for me, and still tries to download the latest:

- aws-eks/update-kubeconfig-with-authenticator:
    authenticator-release-tag: v0.5.6

from aws-eks-orb.

emrebozkurtemonvia avatar emrebozkurtemonvia commented on July 19, 2024

Supposedly the following should fix it (by locking to the previous release), but it doesn't appear to work for me, and still tries to download the latest:

- aws-eks/update-kubeconfig-with-authenticator:
    authenticator-release-tag: v0.5.6

try this maybe: authenticator-release-tag: "v0.5.6" it worked for us like that

from aws-eks-orb.

versus avatar versus commented on July 19, 2024

I added check for latest version of authenticator with binary release
#63

from aws-eks-orb.

russellraed avatar russellraed commented on July 19, 2024

Supposedly the following should fix it (by locking to the previous release), but it doesn't appear to work for me, and still tries to download the latest:

- aws-eks/update-kubeconfig-with-authenticator:
    authenticator-release-tag: v0.5.6

try this maybe: authenticator-release-tag: "v0.5.6" it worked for us like that

Unfortunately this does not work for us.

from aws-eks-orb.

jacobleesinger avatar jacobleesinger commented on July 19, 2024

I'm getting /bin/bash: line 13: v0.5.6: invalid variable name when using authenticator-release-tag: v0.5.6, both with and without the quotes. (using orb version 2.1.1)

from aws-eks-orb.

dersnek avatar dersnek commented on July 19, 2024

authenticator-release-tag: v0.5.6 works if you you downgrade your orb version to 1.2.0, aws-eks: circleci/[email protected]

from aws-eks-orb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.