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

Actions error: Unable to find Kustomize version '3.6.1' for platform 'linux' and architecture amd64. #2485

Closed
2 of 7 tasks
tkayyyyys opened this issue Jan 19, 2021 · 3 comments

Comments

@tkayyyyys
Copy link

tkayyyyys commented Jan 19, 2021

Description
Our GitHub Action workflows are failing with Unable to find Kustomize version '3.6.1' for platform 'linux' and architecture amd64.

The action executes after a successful merge to Master.

We are using ubuntu-latest and so I suspect the issue is being caused by the github update of ubuntu-latest to Ubuntu-20.04.

Area for Triage:

name: CI

on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  - uses: actions/checkout@v2
    with:
      fetch-depth: 0

  - uses: azure/docker-login@v1
    with:
      login-server: careful.azurecr.io
      username: careful
      password: ${{ secrets.ACR_PASSWORD }}

  # Runs a single command using the runners shell
  - name: Run the auto build script
    run: _build/auto/build-and-push.rb sandbox

deploy:
needs: build

# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  - uses: actions/checkout@v2
    with:
      fetch-depth: 0

  - uses: imranismail/setup-kustomize@v1
    with:
      kustomize-version: "3.6.1"

  - uses: azure/k8s-set-context@v1
    with:
      method: kubeconfig
      kubeconfig: ${{ secrets.KUBECONFIG }}

  - uses: azure/k8s-set-context@v1
    with:
      method: kubeconfig
      context: careful
      kubeconfig: ${{ secrets.KUBECONFIG }}

  # Runs a single command using the runners shell
  - name: Run the auto build script
    run: _build/auto/deploy.rb sandbox

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

I tried to downgrade the ubuntu-latest version in the above yml to ubuntu-18.04, however this doesn't seem to resolve the issue..

Expected behavior
The Build and deploy should execute without issue. The actions were working without issue up until today. I re-executed yesterdays (previously working) actions and they are also now failing.

Actual behavior

"Build" executes without issue, but the action is failing on "Deploy" with error:

Unable to find Kustomize version '3.6.1' for platform 'linux' and architecture amd64.

I've checked https://github.com/imranismail/setup-kustomize and no new changes have been made to the project since October. So it's odd that it has suddenly begun to throw an error.

Repro steps
A description with steps to reproduce the issue. If your have a public example or repo to share,
please provide the link.

  1. Repo: https://github.com/Careful-Systems/careful
  2. Workflow: https://github.com/Careful-Systems/careful/tree/master/.github/workflows
  3. To reproduce simply re-run; https://github.com/Careful-Systems/careful/actions/runs/495831595
@maxim-lobanov
Copy link
Contributor

Hello @tkayyyyys ,
imranismail/setup-kustomize@v1 downloads and install kustomize in runtime from https://github.com/kubernetes-sigs/kustomize so I suggest to work with action owner to investigate and fix the issue.
I was able to reproduce the same issue on Ubuntu 18.04 and it is not related to image.

P.S.
Looks like when setup-kustomize retrieves the list of versions kubernetes-sigs/kustomize, pagination doesn't work properly and it retrieves only first 30 results.
Previously, it worked but recently, a bunch of new versions were added to https://github.com/kubernetes-sigs/kustomize and version 3.6.1 is not in the first 30 results.

@tkayyyyys
Copy link
Author

Hi @maxim-lobanov, thank you very much for your insights. Much appreciated!
I'll touch base with the team at https://github.com/kubernetes-sigs/kustomize

@al-cheb
Copy link
Contributor

al-cheb commented Jan 19, 2021

You can install kustomize 3.6.1 manually:

- name: Install kustomize 3.6.1
  run: |
          sudo rm /usr/local/bin/kustomize
          download_url="https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
          curl -s "$download_url" | bash -s 3.6.1
          sudo mv kustomize /usr/local/bin
          kustomize version --short

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants