Can I use the helm chart transformations to comple...
# general
m
Can I use the helm chart transformations to completely remove a resource?
w
Yes, I do that to remove the Grafana tests from the Prometheus Operator chart:
Copy code
function removeGrafanaTest(obj: any) {
    if (obj.metadata.name === "po-grafana-test") {
        obj.apiVersion = "v1";
        obj.kind = "List";
        obj.items = [];
    }
}
m
Ah there we go thanks. I figured there was a hack like this but couldn’t figure it out
(same use case of course, those annoying tests)
w
Right, use a name that matches with your release name. (I use "po" since the names get really long already.)
đź‘Ť 1