Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

bug: when is a number not a number in the land of pulumi? #176

@qdzlug

Description

@qdzlug

Describe the bug
The following error is thrown building our cluster....

View Live: https://app.pulumi.com/qdzlug/do-k8s/jaymara203/updates/2


 +  pulumi:pulumi:Stack do-k8s-jaymara203 creating
    digitalocean:index:KubernetesCluster do-jaymara203-cluster  error: digitalocean:index/kubernetesCluster:KubernetesCluster resource 'do-jaymara203-cluster' has a problem: Attribute must be a whole number, got 3. Examine values at 'KubernetesCluster.NodePool.NodeCount'.
 +  pulumi:pulumi:Stack do-k8s-jaymara203 created
    digitalocean:index:KubernetesCluster do-jaymara203-cluster **failed** 1 error

Diagnostics:
  digitalocean:index:KubernetesCluster (do-jaymara203-cluster):
    error: digitalocean:index/kubernetesCluster:KubernetesCluster resource 'do-jaymara203-cluster' has a problem: Attribute must be a whole number, got 3. Examine values at 'KubernetesCluster.NodePool.NodeCount'.

Resources:
    + 1 created

Duration: 2s

 stderr:

But looking at the config....

❯ pulumi config -C ./pulumi/python/infrastructure/digitalocean/container-registry
KEY                    VALUE
docean:instance_size   s-4vcpu-8gb
docean:k8s_version     1.22.12-do.0
docean:node_count      3
docean:region          sfo3
kic-helm:fqdn          mara203.docean.mantawang.com
kubernetes:infra_type  DO

To Reproduce
Steps to reproduce the behavior:

  1. Deploy to DO, and include a integer for # of nodes.
  2. Run deployment.
  3. Boom, as shown above...

Expected behavior
To work; if you remove the value from the config file and instead use the fallback in the code (which is also set to 3) things work as expected.

Your environment

Additional context
None

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions