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

raise error when unable to query the latest helm version #255

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mgfritch
Copy link

raise an error if the http get request fails to query api.github.com
for the latest helm version

also use the latest helm feature release (v3.11.0) rather than hard-coding the the prior pre-release (v3.9.0-rc.1)

Signed-off-by: Michael Fritch [email protected]

Raise an error if the http get request fails to query `api.github.com`
for the latest helm version

Signed-off-by: Michael Fritch <[email protected]>
a25c502 hardcoded to a 'pre-release' version of helm (v3.9.0-rc.1),
where the current 'feature release' can now be used (v3.11.0)

Signed-off-by: Michael Fritch <[email protected]>
@mgfritch
Copy link
Author

see also #256 which should fix the failing python 3.6 tox github action

version = "v3.9.0-rc.1"
r = requests.get(url)
r.raise_for_status()
version = r.json()["tag_name"]
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks reasonable but according to the patch a25c502 it was needed by some reason the latest helm version, however it is hardcoded to particular version, so maybe just always downloaded given and tested version of helm instead querying from api.
Interesting that official tool to get helm does not use GitHub api, but parses it from the web UI:
https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3

Copy link
Author

@mgfritch mgfritch Jan 27, 2023

Choose a reason for hiding this comment

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

I think using the latest feature release makes sense for CI pipeline ...

a25c502 required version v3.9.0 or greater, but SLES 15 SP4 Subpackages Updates is the only release that provides this requirement?

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.

2 participants