https://rancher.com/ logo
Title
m

many-area-51777

01/09/2023, 4:26 PM
hey, any idea if I can leverage helm's post-render option with fleet? The reason for that is because I want to override a 3rd party template coming from helm but I don't want to fork and fix it. I explained this in rancher's forum if you are interested in more details
q

quick-sandwich-76600

01/13/2023, 10:23 AM
@many-area-51777 I don't think it's supported but reading through your post in the forum, I think that you may get what you want with Kustomize overriding those encrypted values (example: https://github.com/rancher/fleet-examples/tree/master/multi-cluster/helm-kustomize).
m

many-area-51777

01/13/2023, 5:48 PM
@quick-sandwich-76600 The problem is that I do not control the helm chart. I want to override part of its content without forking it
q

quick-sandwich-76600

01/18/2023, 12:49 PM
Hi @many-area-51777. Look at this example: https://github.com/rancher/fleet-examples/tree/master/single-cluster/helm-kustomize There you can see that it's customizing a remote chart without having to modifiy/fork it. The example links to the targ.gz helm package but it should also work if you use the link to the uncompressed version (or even charts hosted on an OCI registry). Fleet downloads the original chart and applies the customizations with Kustomize.
m

many-area-51777

01/18/2023, 1:36 PM
@quick-sandwich-76600 very interesting. I'm gonna play with that. Thank you!
­čĹŹ 1
p

powerful-elephant-25838

01/24/2023, 6:52 PM
We use post hook in chart by adding it with kustomize option
This way we can use official chart and add custom yaml on top
m

many-area-51777

01/26/2023, 9:17 AM
@powerful-elephant-25838 great, thank you!