https://pulumi.com logo
#general
Title
# general
g

gray-city-50684

02/24/2020, 7:22 PM
When installing a Helm chart with Pulumi, is it possible to mark some of the Kubernetes resources it creates as “ignore-changes”?
w

white-balloon-205

02/24/2020, 7:25 PM
I believe you can use
transformations
to leave off some resources (or modify some resources). cc @gorgeous-egg-16927
g

gray-city-50684

02/24/2020, 7:27 PM
I don’t want to remove any resources it would create on the first
pulumi up
, I just would like to ignore any changes to those resources on any later runs.
w

white-balloon-205

02/24/2020, 7:27 PM
Ahh - yes - you can also use
transformations
to add
ignoreChanges
to specific child resources.
g

gray-city-50684

02/24/2020, 7:28 PM
That sounds like it could work, do you have any examples anywhere?
w

white-balloon-205

02/24/2020, 7:30 PM
https://www.pulumi.com/docs/guides/crosswalk/kubernetes/apps/#deploy-a-helm-chart has an example. There are a couple in the
examples
repo too. Those modify resource inputs, but you can also get passed the options and modify those - see https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/kubernetes/helm/v2/#ChartOpts-transformations.
g

gray-city-50684

02/24/2020, 7:31 PM
Great, I’ll dig in 🙂 Thanks for the quick help!
6 Views