https://pulumi.com logo
Title
a

ancient-rose-25146

06/16/2022, 7:06 PM
Going off my last issue with being unable to update an existing cluster's nodepools from within pulumi, is it possible to update something within the console/cli then import that change to pulumi? As it stands the only solution to continue using pulumi is to completely delete the current cluster and recreate it with the new nodepool configuration, which is not something that I can do. Any help would be appreciated.
b

billowy-army-68599

06/16/2022, 8:28 PM
yes, you can use
pulumi import
or the
import
resource provider
if you update the nodepool, then do
pulumi refresh
(if you've already written pulumi code) pulumi will tell you what has changed
a

ancient-rose-25146

06/16/2022, 8:29 PM
Ok great I'll try that. Thank you.
It seems like when I try to refresh the stack it keeps the cluster's old config and setting the value to the actual config makes it think that there is a change that needs to be applied when in reality there shouldn't be.
n

narrow-translator-93508

06/17/2022, 8:22 AM
Been there, done that.. so..
pulumi.IgnoreChanges(
			[]string{
				`metadata.annotations["<http://deployment.kubernetes.io/revision|deployment.kubernetes.io/revision>"]`,
				`metadata.selfLink`,
				`nodeConfig`,
				`nodePools`,
			},
		),
☝️ This is basically the only way I found to stop
pulumi
from replacing my cluster on each update
And it works great 😛
a

ancient-rose-25146

06/17/2022, 3:46 PM
Thank you I'll put this in.
1
n

narrow-translator-93508

06/17/2022, 3:46 PM
My pleasure ^^