sparse-intern-71089
08/01/2021, 10:25 PMbored-table-20691
08/01/2021, 10:26 PMastonishing-oyster-32419
08/01/2021, 10:27 PMpackage 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
})
}⏎
astonishing-oyster-32419
08/01/2021, 10:29 PMname: proj
runtime: go
description: A minimal Go Pulumi program
bored-table-20691
08/01/2021, 10:30 PMnil
for NewKubernetesCluster, but I’m not sure of the top of my head.astonishing-oyster-32419
08/01/2021, 10:33 PMastonishing-oyster-32419
08/01/2021, 10:36 PMpulumi up
even affected by that third parameter in my code, the call to digitalocean.NewKubernetesCluster(ctx, "proj", nil)
????? @billowy-army-68599bored-table-20691
08/01/2021, 10:36 PMpulumi up
will execute your pulumi program, so if there is an error in it, it will return that error.astonishing-oyster-32419
08/01/2021, 10:36 PMbored-table-20691
08/01/2021, 10:37 PMastonishing-oyster-32419
08/01/2021, 10:38 PMastonishing-oyster-32419
08/01/2021, 10:39 PM