https://pulumi.com logo
#golang
Title
# golang
m

mammoth-honey-6147

11/25/2021, 9:12 PM
Working with the Rancher2 Provider and attempting to deploy a chart from a repo, but encountering a panic - details in 🧵
Chart:
Copy code
bitnamiCatalog, err := rancher2.NewCatalogV2(ctx, "bitnami-charts", &rancher2.CatalogV2Args{
			Name: pulumi.String("bitnami"),
			Url:  pulumi.String("<https://charts.bitnami.com/bitnami>"),
		})
Release:
Copy code
_, err = rancher2.NewAppV2(ctx, "metallb", &rancher2.AppV2Args{
				ChartName:                pulumi.String("metallb"),
				ClusterId:                toolsCluster.ClusterV1Id,
				Name:                     pulumi.String("metallb"),
				Namespace:                metallbNamespace.Name,
				RepoName:                 bitnamiCatalog.Name,
				Values:                   pulumi.String(metallbConfig),
			})
Error:
Copy code
pulumi:pulumi:Stack (rancher-tools-cluster-dev):
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0xe0 pc=0xe4c65e]
    goroutine 1 [running]:
    main.main.func1(0xc00018a000)
        /home/david/GolandProjects/homelab-pulumi/rancher-tools-cluster/main.go:224 +0x113e
Line 224 =
Copy code
RepoName:                 bitnamiCatalog.Name,
From the
catalog
resource Any pointers? (pun intended)
s

sparse-park-68967

11/25/2021, 10:09 PM
Could you file an issue with the above?
m

mammoth-honey-6147

11/26/2021, 12:28 PM
Will do
Actually, ignore that, I was missing a required input which was manifesting as a panic
4 Views