copying chart.template to fix helm unit test#578
copying chart.template to fix helm unit test#578hjoshi123 wants to merge 1 commit intocert-manager:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
In the cert-manager repo |
|
@ThatsMrTalbot I thought about that but I wanted to make a uniform approach so that we can use makefile-modules and eventually use makefile-modules for all helm stuff instead of manifest.mk in cert-manager. @erikgb / @ThatsMrTalbot alternatively I could edit the |
I think that is a good end goal, dunno if it should be in scope for this. How I would tackle this:
|
Signed-off-by: hjoshi123 <mail@hjoshi.me>
55b2210 to
4cb14ed
Compare
|
Closing this as we decided to convert Chart.template.yaml in cm to a static file as discussed here: https://kubernetes.slack.com/archives/CDEQJ0Q8M/p1775445108886909 |
This PR aims to improve the previous helm-unittest PR by copying the helm chart into a temp directory within _bin (
$(bin_dir)). This allows us to replace the templated variables within Chart.template.yaml (if present) so that unit tests can be run. Without this helm-unittest will throw an error claiming there's no Chart.yaml.