Giter VIP home page Giter VIP logo

asdf-helm's Introduction

asdf-helm

GitHub Actions Status

Helm plugin for asdf version manager

Install

asdf plugin-add helm https://github.com/Antiarchitect/asdf-helm.git

Environment Variable Options

  • ASDF_HELM_OVERWRITE_ARCH: force the plugin to use a specified processor architecture rather than the automatically detected value. Useful, for example, for allowing users on M1 Macs to install amd64 binaries when there's no arm64 binary available.

Use

Check out the asdf readme for instructions on how to install and manage versions of Helm.

asdf-helm's People

Contributors

antiarchitect avatar cheyilin avatar jhchabran avatar jtslear avatar mathew-fleisch avatar mayconritzmann avatar paul-civitas avatar trotttrotttrott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

asdf-helm's Issues

tar: Unrecognized archive format

$ asdf install helm 3.0.0-alpha.1
Downloading helm from https://storage.googleapis.com/kubernetes-helm/helm-v3.0.0-alpha.1-darwin-amd64.tar.gz to /var/folders/_x/75q7884d3hxbgnvs904cmc680000gn/T//helm-v3.0.0-alpha.1-darwin-amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   217  100   217    0     0   1653      0 --:--:-- --:--:-- --:--:--  1656
Creating bin directory
Cleaning previous binaries
Copying binary
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
$ asdf install helm 2.14.1
Downloading helm from https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-darwin-amd64.tar.gz to /var/folders/_x/75q7884d3hxbgnvs904cmc680000gn/T//helm-v2.14.1-darwin-amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 26.5M  100 26.5M    0     0  12.5M      0  0:00:02  0:00:02 --:--:-- 12.5M
Creating bin directory
Cleaning previous binaries
Copying binary

Github Actions build is breaking due to not picking up the architecture

It seems that d4bdfe2 broke my build :)

I am using the asdf Github Action to install dependencies and it started failing this morning. Note the destination url that asdf is trying to extract the package to:

 /tmp/helm_HR4UAL/helm-v3.6.3-linux-.tar.gz

The correct destination is something like:

/tmp/helm_VejCJj/helm-v3.6.3-linux-amd64.tar.gz

Here is the sample Github Action workflow:

jobs:
  do-the-thing:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout repo
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Setup asdf
        uses: asdf-vm/actions/setup@v1

     - name: Install asdf dependencies
        uses: asdf-vm/actions/install@v1

Tool versions file:

pluto 4.0.4
helm 3.6.3
polaris 4.0.4

Full output:

##[debug]Evaluating condition for step: 'Install asdf dependencies'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Install asdf dependencies
##[debug]Loading inputs
##[debug]Loading env
Run asdf-vm/actions/install@v1
/home/runner/.asdf/bin/asdf plugin-list
lp-cli
Installing pluto plugin...
/home/runner/.asdf/bin/asdf plugin-add pluto
initializing plugin repository...Cloning into '/home/runner/.asdf/repository'...
Installing helm plugin...
/home/runner/.asdf/bin/asdf plugin-add helm
Installing polaris plugin...
/home/runner/.asdf/bin/asdf plugin-add polaris
/home/runner/.asdf/bin/asdf install
Downloading helm from https://get.helm.sh/helm-v3.6.3-linux-.tar.gz to /tmp/helm_HR4UAL/helm-v3.6.3-linux-.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   215  100   215    0     0    634      0 --:--:-- --:--:-- --:--:--   634
Creating bin directory
Cleaning previous binaries
Copying binary

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: Action failed with error Error: The process '/home/runner/.asdf/bin/asdf' failed with exit code 1
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Install asdf dependencies

Temp workaround:

I will use the new env var for now but we should fix this so more builds dont suddenly break.

I am getting Checksum validation failed in Manjaro linux

Hi ;
I am trying to install helm package (I tried multiple versions) in Manjaro Linux.
This is the error I am getting.

Downloading helm from https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz to /tmp/helm_xlAtvD/helm-v3.6.3-linux-amd64.tar.gz
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100 13.0M  100 13.0M    0     0  2338k      0  0:00:05  0:00:05 --:--:-- 2866k
Creating bin directory
Cleaning previous binaries
Copying binary
Platform 'linux' supported!

Validating checksum...
Checksum validation failed.

But the main problem I experience is:

When I want to install another package I am getting the same error.

I tried to remove the helm plugin and I can see that, still a temporary file for helm is generated in the folder I am installing plugin versions. And it is still trying to install helm.

Thanks in advance.

The plugin does not support the basic idea of asdf

The basic idea of asdf that you can manage different versions of tools in different projects..
The plugin solves only one thing: install
The helm env variables are the same for each version, here is an example:
HELM_BIN="helm"
HELM_BURST_LIMIT="100"
HELM_CACHE_HOME="/Users/vitalis/Library/Caches/helm"
HELM_CONFIG_HOME="/Users/vitalis/Library/Preferences/helm"
HELM_DATA_HOME="/Users/vitalis/Library/helm"
HELM_DEBUG="false"
HELM_KUBEAPISERVER=""
HELM_KUBEASGROUPS=""
HELM_KUBEASUSER=""
HELM_KUBECAFILE=""
HELM_KUBECONTEXT=""
HELM_KUBEINSECURE_SKIP_TLS_VERIFY="false"
HELM_KUBETLS_SERVER_NAME=""
HELM_KUBETOKEN=""
HELM_MAX_HISTORY="10"
HELM_NAMESPACE="default"
HELM_PLUGINS="/Users/vitalis/Library/helm/plugins"

It means that any helm plugin that will be installed is shared across all helm versions...

"asdf install helm 2.17.0" not working

looks like download URL has changed "https://get.helm.sh". I am facing below error when I install helm 2.17.0

โžœ  ~  asdf install helm 2.17.0
Downloading helm from https://get.helm.sh/helm-v2.17.0-darwin-arm64.tar.gz to /var/folders/nz/63gq9x4s78g8pvshn7v9m0240000gp/T//helm-v2.17.0-darwin-arm64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   215  100   215    0     0    138      0  0:00:01  0:00:01 --:--:--   139
Creating bin directory
Cleaning previous binaries
Copying binary
tar: Error opening archive: Unrecognized archive format

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.