https://pulumi.com logo
Title
b

bumpy-summer-9075

06/29/2021, 2:59 PM
I added Grafana's helm chart using pulumi, and while it works great, every
pulumi up
detects changes in a secret and in an annotation (checksum/secret). How do you use
ignoreChanges
with helm chart's sub resources?
if anyone's interested, I managed to do this by adding the
ignoreChanges
directly to the sub-resource using
transformations
g

gentle-diamond-70147

06/29/2021, 6:59 PM
Yep, that's exactly the right way to do it! I was just trying to find you an example - glad you figured it out.
❤️ 1
Here's the example I was looking for for anyone else that comes across this question. https://gist.github.com/clstokes/f15754bde4251ac151a3b4be8679dc42#file-index-ts-L43-L65
b

bumpy-summer-9075

06/29/2021, 7:03 PM
Cheers 😄 Do you happen to know how to change the type of a componentResource? I tried
super('foo:bob', name, {}, {aliases: [{name: 'foo:alice'}]})
but that obviously does not work (my workaround is to edit the state.json directly)
g

gentle-diamond-70147

07/01/2021, 8:37 PM
you should be able to do
{aliases: [{type: 'foo:alice'}]}
type
instead of
name
❤️ 1