This message was deleted.
# getting-started
s
This message was deleted.
b
What does your code look like?
a
Copy code
package main

import (
	"<http://github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean|github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean>"
	"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create an EKS cluster with the default configuration.


		cluster, err := digitalocean.NewKubernetesCluster(ctx, "dev", nil)
		if err != nil {
			return err
		}

		// Export the cluster's kubeconfig.
		ctx.Export("kubeconfig", cluster.KubeConfigs.Index(<http://pulumi.Int|pulumi.Int>(0)))
		return nil
	})
}⏎
In the Pulumi webpage, the path is: 'camfoo / proj / dev'
The pulumi.yaml contains:
Copy code
name: proj
runtime: go
description: A minimal Go Pulumi program
b
If I had to guess, it doesn’t like that the last parameter is
nil
for NewKubernetesCluster, but I’m not sure of the top of my head.
a
@bored-table-20691 thank you
@bored-table-20691 is
pulumi up
even affected by that third parameter in my code, the call to
digitalocean.NewKubernetesCluster(ctx, "proj", nil)
????? @billowy-army-68599
b
pulumi up
will execute your pulumi program, so if there is an error in it, it will return that error.
a
okay, good info, thanks
b
Whether that error comes from there - I am not sure.
a
@bored-table-20691, yes that is helping, with the right struct, it now complains about missing members. 🙂
Thank, you