linuxkubernetesfedoraargo-workflowsargoproj

How to update Argo CLI?


I want to use Argo v2.4.0 and I ran the following command:

oc apply -n <my_ns> -f https://raw.githubusercontent.com/argoproj/argo/v2.4.0/manifests/install.yaml

This did not change the output of argo version (v2.3.0) notibly because it is installing Argo on the cluster and argo version points to my local binary. In order to update Argo cli, I ran the following command:

curl -sLO https://github.com/argoproj/argo/releases/download/v2.12.0-rc2/argo-linux-amd64.gz
gunzip argo-linux-amd64.gz

This gives me an error: gzip: argo-linux-amd64.gz: not in gzip format

I want to update my Argo in order to parse a workflow.yaml file.


Solution

  • In general:

    Follow the download instructions for your target Argo Workflows release.

    Specific to 2.4.0:

    The download links were incorrect for 2.4.0.

    The binaries have been replaced by gzipped binaries. You can use the download/gunzip process from your original post now.

    Original answer (OUTDATED):

    The download instructions for that release are incorrect. Usually the binaries are compressed, but for some reason they aren't for 2.12.0-rc2.

    Try again without the .gz extension.

    $ curl -sLO https://github.com/argoproj/argo/releases/download/v2.12.0-rc2/argo-linux-amd64
    $ chmod +x argo-linux-amd64
    $ ./argo-linux-amd64
    

    I'll try to get the release page fixed.