Open orcutt989 opened 1 year ago
Hey @orcutt989, thanks for reporting this. I have a workaround for the API error, but it looks like the upstream provider we use doesn't handle the version
property well, as you'll see below. Let me know if this workaround helps unblock your program though.
Using the ignoreChanges
resource option will prevent you from seeing the API error and keep the resource using the latest version returned by their API:
const cluster = new digitalocean.KubernetesCluster("do-cluster", {
region: digitalocean.Region.NYC1,
version: "latest",
autoUpgrade: true,
nodePool: {
name: "default",
size: "s-2vcpu-2gb",
autoScale: true,
minNodes: 1,
maxNodes: 3
},
}, {
ignoreChanges: ["version"]
});
However, it looks like per this issue, changing the input version does not update the cluster:
For the API error and not supporting "latest", I've opened this issue as well:
@orcutt989 per the issue filed upstream (#997) this may be intended behavior of the provider.
If that's true then I feel like "latest" should not work on first run and should be disabled. This violates idempotency and immutable practices.
What happened?
I can stand up a new cluster with the following code (note
version: "latest"
)but when I try to process updates on the cluster I get "invalid version slug" and have to change
latest
to an actual DO k8s version slugExpected Behavior
I would hope i could leave
latest
and it might somehow keep the version it was stood up with, or pin it tolatest
.Steps to reproduce
see above
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).