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

Add --skip-upload input with latest helm/chart-releaser-action #143

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

acuD1
Copy link
Contributor

@acuD1 acuD1 commented May 15, 2023

Description

This PR introduces a new feature that allows skipping the upload_index parts in this action. The main motivation behind this change is to enable the use of OCI-based repositories for Helm with the Github Container Registry without managing the upload process of the index.yaml file.

Changes Made:

  • Updated README.md: Added information about the new --skip-upload option and its purpose.

  • Updated action.yaml: Added the skip_upload input parameter to the action file.

  • Updated cr.sh:

    • Added the --skip-upload option to the script's usage information.
    • Modified the main() function to respect the skip_upload option.
    • Ensured that update_index is only called if the skip_upload option is not set. This is handled directly in the update_index function now.
    • Handled the skip_upload variable properly and passed it as an argument when calling update_index.

acuD1 added 2 commits May 15, 2023 12:22
Signed-off-by: acuD1 <arsciand@student.42.fr>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

lgtm

@cpanato cpanato closed this Jun 27, 2023
@cpanato cpanato reopened this Jun 27, 2023
@acuD1
Copy link
Contributor Author

acuD1 commented Jul 20, 2023

Hi, do you want me to rebase this branch to solve conflicts ?

Greetings.

@jasonmoore2k
Copy link

@acuD1 able to fix the conflicts? I’ve been using your revision and it works well

@acuD1
Copy link
Contributor Author

acuD1 commented Aug 17, 2023

@jasonmoore2k rebased, instead of two if statements to check the skip-upload flag, I added the skip inside the update_index() function.

Maybe there is a more elegant way to doing that, but it's less code added ;)

@jasonmoore2k
Copy link

lgtm

@cpanato
Copy link
Member

cpanato commented Sep 5, 2023

can you please rebase? thanks

@acuD1
Copy link
Contributor Author

acuD1 commented Sep 5, 2023

@cpanato rebased.

@cpanato cpanato closed this Nov 19, 2023
@cpanato cpanato reopened this Nov 19, 2023
@cpanato
Copy link
Member

cpanato commented Nov 19, 2023

@davidkarlsen PTAL

Copy link
Member

@davidkarlsen davidkarlsen left a comment

Choose a reason for hiding this comment

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

makes sense - lgtm - thanks for the PR!

@cpanato cpanato merged commit 6203d70 into helm:main Nov 20, 2023
3 checks passed
@kristeey
Copy link

kristeey commented Apr 9, 2024

Could you create a release/tag with these changes? @cpanato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants