At the moment the automatic versioning scheme we are using works well for updating charts in general, but it falls apart in the case where we we make PRs to update the common chart.
The core issue is that since helm unittest cannot easily run unitests in library charts, we had to create separate charts dedicated to the purpose of testing the common library.
This task involves solving this problem by first doing some clean up work, and then by modifying the repository tooling so that it automatically updates the versions version references related to the common chart.
This task can be broken up into several steps.
- Rework the tests found in
charts/tests/common0unittests so that the same functionality is tested in either charts/examples/singledeployment(needs to be created) or in the sibling multideployment folder.
- Modify the scripts under
tooling to understand that whenever the common library is being updated, then the version references under charts/examples should be automatically updated as well when we patch the version.
This might not be the most elegant solution, so feel free to propose a different solution.
At the moment the automatic versioning scheme we are using works well for updating charts in general, but it falls apart in the case where we we make PRs to update the
commonchart.The core issue is that since
helm unittestcannot easily run unitests in library charts, we had to create separate charts dedicated to the purpose of testing the common library.This task involves solving this problem by first doing some clean up work, and then by modifying the repository tooling so that it automatically updates the versions version references related to the
commonchart.This task can be broken up into several steps.
charts/tests/common0unittestsso that the same functionality is tested in eithercharts/examples/singledeployment(needs to be created) or in the siblingmultideploymentfolder.toolingto understand that whenever thecommonlibrary is being updated, then the version references undercharts/examplesshould be automatically updated as well when we patch the version.This might not be the most elegant solution, so feel free to propose a different solution.