This message was deleted.
s
This message was deleted.
b
I presume you mean:
Copy code
provider: cluster.provider
@bitter-application-91815
b
yes
b
so in the TypeScript EKS package it will actually initialise a kubernetes provider for you by default
this doesn't happen in Go
b
Thanks Paul, that really helps
to apply the ALB helm chart, via go should i just call out to the exec to run the bash command ?
or is there some way within the pulumi api to do so
apologies if there is but i couldn't see it
b
There's a helm chart resource in pulumi-kubernetes for Go
Let me link you
b
ah nice, thanks dude
b
👍
b
Hi Paul, is there a plugin I'm supposed to use for the provider
Copy code
error: no resource plugin 'kubernetes' found in the workspace or on your $PATH
Copy code
ronoc@gunther:~/source/watchly/service/cloud/aws/staging$ pulumi plugin ls
NAME  KIND      VERSION  SIZE    INSTALLED  LAST USED
aws   resource  3.2.1    238 MB  n/a        1 day ago
aws   resource  3.2.0    238 MB  n/a        1 day ago
aws   resource  3.1.0    235 MB  n/a        1 day ago
aws   resource  3.0.0    229 MB  n/a        1 day ago
aws   resource  2.0.0    224 MB  n/a        1 day ago
b
yes you need to install kubernetes
pulumi plugin install resource kubernetes 2.5.0
that may well work for you
b
cheers, sorry i thought provider was just for cloud provider, was confused .....
b
it's no worries at all
b
i'm just trying to install the alb ingress from the example in the docs and i get this error
Copy code
pulumi:pulumi:Stack (aws-staging):
    error: program failed: failed to invoke helm template: rpc error: code = Unknown desc = invocation of kubernetes:helm:template returned an error: unknown Invoke type "kubernetes:helm:template"
    exit status 1
 
    error: an unhandled error occurred: program exited with non-zero exit code: 1
Copy code
func (w *worker) applyAlbCharts(ctx *pulumi.Context, namespace string) error {
	_, err := helm.NewChart(ctx, fmt.Sprintf("axiom-alb-charts-%s", w.targetEnv), helm.ChartArgs{
		Chart:     pulumi.String(fmt.Sprintf("axiom-alb-charts-%s", w.targetEnv)),
		Version:   pulumi.String("1.24.4"),
		Namespace: pulumi.String(namespace),
		FetchArgs: helm.FetchArgs{
			Repo: pulumi.String("<http://storage.googleapis.com/kubernetes-charts-incubator/aws-alb-ingress-controller-0.1.9.tgz>"),
		},
		Values: pulumi.Map{
			"clusterName":           w.eksCluster.Name,
			"autoDiscoverAwsRegion": pulumi.Bool(true),
			"autoDiscoverAwsVpcID":  pulumi.Bool(true),
		},
	})
	if err != nil {
		return err
	}

	return nil
}
i presume these are the same
ah sorry, shouldn't be passing a tar file
hmm still getting this
Copy code
pulumi:pulumi:Stack (aws-staging):
    error: program failed: failed to invoke helm template: rpc error: code = Unknown desc = invocation of kubernetes:helm:template returned an error: unknown Invoke type "kubernetes:helm:template"
    exit status 1
 
    error: an unhandled error occurred: program exited with non-zero exit code: 1
Copy code
func (w *worker) applyAlbCharts(ctx *pulumi.Context, namespace string) error {
	_, err := helm.NewChart(ctx, fmt.Sprintf("axiom-alb-charts-%s", w.targetEnv), helm.ChartArgs{
		Chart:     pulumi.String("incubator/aws-alb-ingress-controller"),
		Version:   pulumi.String("1.0.2"),
		Namespace: pulumi.String(namespace),
		FetchArgs: helm.FetchArgs{
			Repo: pulumi.String("<http://storage.googleapis.com/kubernetes-charts-incubator>"),
		},
		Values: pulumi.Map{
			"clusterName":           w.eksCluster.Name,
			"autoDiscoverAwsRegion": pulumi.Bool(true),
			"autoDiscoverAwsVpcID":  pulumi.Bool(true),
		},
	})
	if err != nil {
		return err
	}

	return nil
}