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

mammoth-honey-6147

10/30/2021, 2:32 PM
Trying out the new helm release package (https://www.pulumi.com/blog/full-access-to-helm-features-through-new-helm-release-resource-for-kubernetes/) and I'm trying to create the following https://github.com/bitnami/charts/tree/master/bitnami/metallb/#example-layer-2-configuration by implementing the following:
Copy code
Values: pulumi.Map{
				"configInline" : pulumi.Map{
					"address-pools" : pulumi.Map{
						"name": pulumi.String("pool"),
						"protocol": pulumi.String("layer2"),
						"addresses": pulumi.String("172.16.10.55-172.16.10.55"),
					},
				},
			},
However the workload from the chart has issues trying to unmarshl it:
Copy code
could not parse config: yaml: unmarshal errors:\n  line 2: cannot unmarshal !!map into []config.addressPool
Getting the values from helm:
Copy code
USER-SUPPLIED VALUES:
configInline:
  address-pools:
    addresses: 172.16.10.55-172.16.10.55
    name: pool
    protocol: layer2
Would appreciate a second pair of eyes
b

billowy-army-68599

10/30/2021, 3:25 PM
@mammoth-honey-6147 this looks like metallb, you need to json stringify it to make your life easier, here's an example in typescript: https://github.com/lbrlabs/pulumi-homelab/blob/master/metallb/index.ts#L34
m

mammoth-honey-6147

10/30/2021, 3:26 PM
it is. I'll give that a try, thanks
3 Views