This was working last night, and all I've done today is add an extra values field in the helm option chart. Now I'm getting:
Added Chart Repo argo
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x23c1a7f]
goroutine 1 [running]:
main.main()
C:/DevOps/argo-cd-demo/deployArgoCDGo/main.go:124 +0x39f
exit status 2Added Chart Repo argo
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x23c1a7f]
goroutine 1 [running]:
main.main()
C:/DevOps/argo-cd-demo/deployArgoCDGo/main.go:124 +0x39f
exit status 2Added Chart Repo argo
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x23c1a7f]
goroutine 1 [running]:
main.main()
C:/DevOps/argo-cd-demo/deployArgoCDGo/main.go:124 +0x39f
exit status 2
Here is my full code: https://go.dev/play/p/c1rfgDJQTeU
Its happening on this line: fmt.Printf("Status of Chart Install %v,\n", *myInstalledHelmChart.Info)
I can't for the life of me figure out how to get around this problem. It was working last night.
I've tried to implement a generics pointer, but that hasn't worked as the type is *release.Release, which is a struct, but I can't figure out how to tell the function to expect a struct.
Any help would be greatly appreciated.