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

feat: Verify chart upload in repo when deploying #339

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

Cho-William
Copy link
Contributor

@Cho-William Cho-William commented Nov 21, 2023

Ran into an issue when deploying with the helm-maven-plugin in the following scenario:

  • suppose Chart B depends on Chart A
  • Chart A is deployed, and our remote helm repo begins reindexing
  • Chart B begins deploying and looks for Chart A
  • The remote helm repo is still in the process of reindexing and cannot find Chart A
  • deploy job fails because Chart B could not get its dependency Chart A

This PR adds a uploadVerification flag which will check if the reindexing of a chart is complete by repeatedly running helm show chart <chartName> --version <chartVersion> until either the chart is verified or if the timeout period is reached (set with uploadVerificationTimeout).

README.md Show resolved Hide resolved
@sschnabe sschnabe enabled auto-merge (rebase) November 29, 2023 14:03
@sschnabe
Copy link
Member

I've updated the main in this repo to refactor the binaries storage. This will also solve your build problems. I've create a pr with merging main into your repository. Please see TechnologyBrewery#5

src/main/java/io/kokuwa/maven/helm/UploadMojo.java Outdated Show resolved Hide resolved
src/main/java/io/kokuwa/maven/helm/UploadMojo.java Outdated Show resolved Hide resolved
src/main/java/io/kokuwa/maven/helm/UploadMojo.java Outdated Show resolved Hide resolved
@Cho-William
Copy link
Contributor Author

Thank you for implementing that fix for the binaries. I've implemented the requested changes and rebased.

@sschnabe sschnabe merged commit e00483f into kokuwaio:main Dec 11, 2023
5 checks passed
@sschnabe
Copy link
Member

sschnabe commented Dec 11, 2023

Sorry for the delay. Released as 6.13.0

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

Successfully merging this pull request may close these issues.

None yet

2 participants