Are there any kustomize gotchas? I'm passing an ab...
# kubernetes
p
Are there any kustomize gotchas? I'm passing an absolute path directory in and getting nil pointer panics in go. Update: it doesnt appear to be an issue finding the directory because if I intentionally set a base in the kustomization.yaml that doesn't exists it gives me the expected error. Second update: it looks like the issue is that my customize was using the built in LabelTransfomer
Using Typescript, cli version is 2.24.1
the path is correct as I logged it, cd'd into it and ran a successful kustomize build
Copy code
new k8s.kustomize.Directory(name, {
            directory: path.join(__dirname, 'kustomize'),
        }, localOpts)
Copy code
pulumi:pulumi:Stack (xxx):
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x10346e5e0]
    goroutine 27 [running]:
    <http://sigs.k8s.io/kustomize/api/internal/plugins/loader.(*Loader).loadAndConfigurePlugin(0x14001548370|sigs.k8s.io/kustomize/api/internal/plugins/loader.(*Loader).loadAndConfigurePlugin(0x14001548370>, 0x103ea8600, 0x1400115cb40, 0x103ebcf68, 0x104e71048, 0x1400258ec80, 0x140024fa748, 0x103451408, 0x14001224ae8, 0x14001224ae0)
    	/home/runner/go/pkg/mod/sigs.k8s.io/kustomize/api@v0.4.1/internal/plugins/loader/loader.go:117 +0x40
If I switch out the directory for a URL it works fine.