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

Overwrite local helm dependencies for deployment #315

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

carter-cundiff
Copy link
Contributor

Additional functionality for controlling whether a local path chart should be used for a chart dependency. When setting the new helm.overwriteLocalDependencies to true, chart dependencies on a local path chart will be overwritten with the respective properties set by helm.overwriteDependencyVersion and helm.overwriteDependencyRepository. This is helpful for deploying charts with intra repository dependencies, while still being able to use local path dependencies for development builds.

Example usage:
For development, this allows you to build with local dependencies like repository: file://test/path/ within your Chart.yaml with:
mvn clean install

For deployment, the local dependencies can be updated with remote repo they will live at. This way you are not deploying charts with local dependencies.
mvn clean deploy -Dhelm.overwriteLocalDependencies=true -Dhelm.overwriteDependencyVersion=1.0.0 -Dhelm.overwriteDependencyRepository=https://your.remote.repo/

@sschnabe
Copy link
Member

sschnabe commented Aug 6, 2023

Thx for the contribution. I'll review it next week.

@sschnabe sschnabe added the feature feature New feature or request label Aug 6, 2023
@sschnabe sschnabe self-assigned this Aug 6, 2023
@sschnabe sschnabe merged commit e2f0912 into kokuwaio:main Aug 9, 2023
5 checks passed
@sschnabe
Copy link
Member

sschnabe commented Aug 9, 2023

Released with 6.10.0.

@carter-cundiff carter-cundiff deleted the dependency-overwriter branch August 30, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants