https://pulumi.com logo
m

millions-judge-24978

10/23/2019, 12:32 AM
Can I use the helm chart transformations to completely remove a resource?
w

worried-city-86458

10/23/2019, 12:37 AM
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

millions-judge-24978

10/23/2019, 12:38 AM
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

worried-city-86458

10/23/2019, 12:39 AM
Right, use a name that matches with your release name. (I use "po" since the names get really long already.)
👍 1