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

Flag --ignore-if-exists for push command #41

Closed
arthur-c opened this issue Apr 19, 2018 · 3 comments
Closed

Flag --ignore-if-exists for push command #41

arthur-c opened this issue Apr 19, 2018 · 3 comments
Labels
Milestone

Comments

@arthur-c
Copy link

In addition to the --force flag, an --ignore-if-exists flag for the push command could be useful

My CICD test and package my whole helm repo after each commit and push the charts with helm s3.

I don't want/need to use --force for existing charts but I would like the push not to fail on them.

Most of the time only 1 chart is updated per commit so most of the pushes fail. A clean exit could be very useful and avoid some error management in the CICD.

@hypnoglow
Copy link
Owner

Hi, @arthur-c !

I see your problem, such flag may be useful.

Most of the time only 1 chart is updated per commit so most of the pushes fail.

I'm just curious why do you try to push multiple charts if only 1 is updated? I think a simple shell script can help here.

@arthur-c
Copy link
Author

Yes I might be able to detect changes inside a commit in my CI and only package & push what's new. I don't have lots of charts at the moment so it's not very long to compute everything.

But It's not a big issue at all.

@arthur-c
Copy link
Author

thank you !

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

No branches or pull requests

2 participants