zegl / kube-score

Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.
https://kube-score.com
MIT License
2.72k stars 174 forks source link

Rename kube-score packages to fetch latest version dynamically #421

Open ixxeL2097 opened 2 years ago

ixxeL2097 commented 2 years ago

Currently the kube-score packages name include the version number : kube-score_1.13.0_linux_amd64.tar.gz

The problem is that including the version number is the package's name, deny the user from downloading the latest version without knowing the actual latest version number.

Impossible to download with this kind of syntax :

curl -sL "https://github.com/zegl/kube-score/releases/latest/download/<kube-score-package-name>.tar.gz"

Instead, we must use this syntax :

curl -sL "https://github.com/zegl/kube-score/releases/download/v1.13.0/kube-score_1.13.0_linux_amd64.tar.gz"

The current syntax is not convenient for automation tools downloading automatically the last version (needs to GREP the latest version). My proposal is to rename the package with a generic name like kube-score_linux_amd64.tar.gz instead of kube-score_<version-number>_linux_amd64.tar.gz as it is practiced on other Github repositories, to be able to fetch the latest version without having to know the latest version number.

That would really improve automation processes using this tool.