Helm can update and install Chart dependencies by using the install --dependency-update flag. It isn't necessary to manually install the repositories and then build the dependencies.
If the local chart files exist already on the next deployment, Helm won't go out and attempt to update them. So this is a slight optimization in that it's less likely to require contacting the remote Chart repos every deployment.
In the future, we can avoid this completely by creating a CORTX Chart artifact (e.g. helm package) and bundle the dependencies with it, and update instructions to use the released Chart (then later, create a Helm repo).
Type of change
[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds new functionality)
[ ] Breaking change (bug fix or new feature that breaks existing functionality)
[ ] Third-party dependency update
[ ] Documentation additions or improvements
[X] Code quality improvements to existing code or test additions/updates
How was this tested?
Fresh install with no Helm repos installed and a clean "charts" directory. Deploy script adds repos and downloads the charts automatically
A subsequent deployment with charts already downloaded. Deploy script does not update repos or download anything.
A subsequent deployment with one of the chart .gz files deleted. Deploy script updates repost and downloads the charts automatically.
Additional information
Checklist
[x] The change is tested and works locally.
[ ] New or changed settings in the solution YAML are documented clearly in the README.md file.
Description
Helm can update and install Chart dependencies by using the install
--dependency-update
flag. It isn't necessary to manually install the repositories and then build the dependencies.If the local chart files exist already on the next deployment, Helm won't go out and attempt to update them. So this is a slight optimization in that it's less likely to require contacting the remote Chart repos every deployment.
In the future, we can avoid this completely by creating a CORTX Chart artifact (e.g.
helm package
) and bundle the dependencies with it, and update instructions to use the released Chart (then later, create a Helm repo).Type of change
How was this tested?
Additional information
Checklist
If this change requires newer CORTX or third party image versions:
image
fields in solution.example.yaml have been updated to use the required versions.appVersion
field of the Helm chart has been updated to use the new CORTX version.If this change addresses a CORTX Jira issue:
CORTX-XXXXX:
)View rendered charts/cortx/README.md View rendered charts/cortx/README.md.gotmpl