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

[CI] partial release and install fixes #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leecalcote
Copy link
Member

@leecalcote leecalcote commented Oct 10, 2024

Signed-off-by: Lee Calcote lee.calcote@layer5.io

Notes for Reviewers

This PR partially addresses the need for an install and update script (could be the same script). I'm guessing that helm takes care of uninstall insomuch as is needed for this plugin, which would be to delete the cloned repo (this repo) from user's filesystem.

Please feel free to checkout this branch and add commits or to close this PR and start your own.

Resources:

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
@github-actions github-actions bot added the area/ci Continuous integration | Build and release label Oct 10, 2024

# Handle HELM_PLUGIN_DIR filepath based on OS. Use *nix-based filepathing

if type cygpath >/dev/null 2>&1; then

Choose a reason for hiding this comment

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

For platforms other than windows, the HELM_PLUGIN_DIR is going to be "" and eventually the CWD is used for downloading the files, right?

else
# Use the GitHub API to find the download url for this project.
url="https://api.github.com/repos/$PROJECT_GH/releases/latest"
if type "curl" >/dev/null; then

Choose a reason for hiding this comment

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

verfiySupported checks for curl and wget already, do we need these checks again ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably not. Please change at-will

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Continuous integration | Build and release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants