https://pulumi.com logo
#google-cloud
Title
# google-cloud
b

broad-helmet-79436

04/08/2020, 11:34 AM
Hi! Just in case this is an instance of the XY problem and I’m asking about the wrong thing: My goal is to be able to upgrade the Kubernetes cluster master and node pool using Pulumi. I’ve somehow screwed up my container cluster’s
minMasterVersion
and
nodeVersion
fields, and set them to
undefined
instead of a string. If I try adding either field now, Pulumi wants to
update
my cluster, which I guess makes sense. However, it also wants to
replace
the kubernetes Provider I’ve created using outputs from the cluster resource (
name
,
endpoint
, and
masterAuth
). Note that I don’t use
minMasterVersion
or
nodeVersion
, although I guess that might not matter.
replace
-ing the Kubernetes provider also leads to replacing all my Kubernetes resources, which I very much do not want. Is there a way to add the
minMasterVersion
field without breaking my provider? `If I try adding
s

stocky-island-3676

04/08/2020, 11:44 AM
@broad-helmet-79436 Thanks for letting us know the XY-problem. Now I have a term for it 😄 To your problem: Unfortunately, I’ve seen similar behaviour with the GKE resource (I’m assuming it’s this one as you posted in #gcp). I’m also interested for a solution. Might be a bug in the Terraform provider, though.
b

broad-helmet-79436

04/08/2020, 11:44 AM
hehe, it’s a useful term!
yeah, it’s GKE
for what it’s worth, here’s why I got burned in the first place: I didn’t realise that it gave me a Promise back when I set
async: true
, so I just referenced
.latestMasterVersion
directly (which was undefined, as
Promise
doesn’t have that field property…
but that’s a completely separate issue 😄
👍 1