Closed p-se closed 1 week ago
@manno , considering pr was merged some time ago, can we consider this issue done?
@mmartin24 yes, this should be fixed now.
Hook resources from Helm charts are not treated like regular resources from the templates folder. Hook resources are often jobs and other temporary resources, which might get deleted if the hook delete annotation used, too.
Hook resources did not show up in the Fleet CLI output.
CLI now prints hook resources.
However, we did not change Fleet to report hook resources in the UI and detect drift in hook resources.
Any chart that uses helm hooks would work. See https://helm.sh/docs/topics/charts_hooks/ for possible annotations.
Rancher Version | Fleet Version |
---|---|
v2.10.0-alpha7 | fleet:v0.11.0-rc.2 |
Note: I used small script by @p-se
Steps to reproduce
helm create reproducer
reproducer/templates/
reproducer/templates/serviceaccount.yaml
fleet test
(deprecated) or fleet apply/target/deploy to render it's content. More specifically, the following commands can be used inside the chart:null
helm.sh/hook
and re-renderThe expected behavior is that the templates are rendered correctly and null is not returned, since the resources are created, even if they may just be temporarily created.