Skip to content

Conversation

@raaizik
Copy link
Member

@raaizik raaizik commented Nov 11, 2025

Resolves #1623

@raaizik raaizik requested review from ELENAGER and removed request for nirs and raghavendra-talur November 11, 2025 16:06
@raaizik raaizik force-pushed the ra-1623 branch 3 times, most recently from 7a98b69 to 4586e63 Compare November 11, 2025 16:17
Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Commented only on test/README.md, same changes apply to other file.

[Velero Basic Install](https://velero.io/docs/v1.16/basic-install/)

1. Install `helm` tool - on Fedora you can use:
1. Install Helm (version ≥ 3.13 recommended).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't mention the version in the title

```bash
sudo dnf install -y helm
```
sudo dnf install helm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to provide 2 options, this makes maintenance harder, and introduce issues with people running older distros or other disros (e.g. apt based). Best remove this text.

**Option 2: Using official Helm GitHub releases (for older Fedora or
outdated package versions)**

Check the latest release: [Helm's GitHub release page](https://github.com/helm/helm/releases)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check latest release, just provide the command to run to install the latest version like we do with other tools.

curl -L https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -o helm.tgz
tar -xzf helm.tgz
sudo mv linux-amd64/helm /usr/local/bin/helm
rm -rf linux-amd64 helm.tgz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For getting the latest version we can use jq. We also need proper flags to curl to ensure it fails on errors.

% curl -fsSL https://api.github.com/repos/helm/helm/releases/latest | jq -r .tag_name
v4.0.1

This introduce another dependency but anyone working with kubernetes and json needs jq so this is not an issue.

For downloading we also need proper curl flags (this should be fixed for other tools):

curl -fsSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -o helm.tgz

For extracting helm from the tarball we can use the same command used for velero:

tar xf helm.tgz --strip 1 linux-amd64/helm

For installing we need to use the install command (used for other tools):

sudo install helm /usr/local/bin

Verify:

```bash
helm version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have this section for other tools, it is not needed.

We typically add a url to the release page for more info, see other tools.


> ⚠️ If you’re on Fedora 37 or earlier, the `dnf` package may install Helm
> 3.11 or older, which is not supported by Ramen. Use the GitHub release
> method instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed when we provide one option to install latest version. Also Fedora 37 is dead for so many years there is no point to mention it now.

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

Successfully merging this pull request may close these issues.

drenv addons: Install helm from github releases

2 participants