yokawasa / action-setup-kube-tools

Github Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, rancher, tilt, skaffold) very fast and cache them on the runner. Please [โœฉStar] if you're using it!
MIT License
75 stars 22 forks source link

Is there a way to specify ARCH type for pulling the right binaries for the setup tools #47

Closed 00r2 closed 7 months ago

00r2 commented 9 months ago

I am using this action quite often and recently we adopted ARM based runners and the setup tools is failing to pull the arm based binaries. Is there anyway to provide an input to select architecture type like (amd64 or arm64) etc?

yokawasa commented 7 months ago

@00r2 thank you for your opening issue and I'm very sorrry for the late response.

I think I can add new arch-type parameter like this below. would it work for you?

Suppose that new input parameter named arch-type ('amd64' by default) is added Sample workflow would be like this

  test: 
    steps:
    - uses: actions/checkout@v4
    - uses: yokawasa/action-setup-kube-tools@v0.11.0
      with:
        arch-type: 'arm64'
        setup-tools: |
          kubectl
        kubectl: '1.25'
    - run: |
        kubectl version --client
00r2 commented 7 months ago

Thank you @yokawasa ๐Ÿ™That will be perfect.

yokawasa commented 7 months ago

@00r2 v0.11.0 has been released. you can specify archi-type with v0.11.0

https://github.com/yokawasa/action-setup-kube-tools/releases/tag/v0.11.0

00r2 commented 7 months ago

Thank you ๐Ÿ™ @yokawasa i will give this a try. Appreciate you getting this out quickly ๐Ÿ˜Š

yokawasa commented 7 months ago

@00r2 I'm closing this issue. please open another issue if you have any problems or request ๐Ÿ™