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

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

Closed
tkayyyyys opened this issue Jan 19, 2021 · 2 comments

Comments

@tkayyyyys
Copy link

I'm using kustomize in my Github actions workflow. As of today I receive the following error when executing a Github action workflow.

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

I filed a bug with the Github actions team. They investigated at actions/runner-images#2485 . Their feedback was as follows:

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.

In the Github Action we use; imranismail/setup-kustomize@v1 to download and install kustomize in runtime from https://github.com/kubernetes-sigs/kustomize.

Attached is my master.yml which references imranismail/setup-kustomize which in-turn runs setup-kustomize:

`
name: CI
on:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
  - uses: actions/checkout@v2
    with:
      fetch-depth: 0

  - uses: azure/docker-login@v1
    with:
      login-server: 
      username: 
      password: 

  - name: Run the auto build script
    run: _build/auto/build-and-push.rb sandbox

deploy:
needs: build

runs-on: ubuntu-latest

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 }}

  - name: Run the auto build script
    run: _build/auto/deploy.rb sandbox

`
Platform

Ubuntu-latest

@imranismail
Copy link
Owner

I've deployed some changes related to the retry mechanism of the octokit client. Can you retry your action?

@tkayyyyys
Copy link
Author

Thanks so much @imranismail ! It's resolved the issue.

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