helmtrans icon indicating copy to clipboard operation
helmtrans copied to clipboard

ERROR: assignment to entry in nil map

Open patsevanton opened this issue 3 years ago • 2 comments

Hello! Thanks for

Current directory contain templates and emptry templates:

 tree
.
├── Chart.yaml
├── README.md
├── output
├── templates
│   ├── api-gateway-deployment.yaml
│   ├── api-gateway-service.yaml
│   ├── config-server-deployment.yaml
│   ├── config-server-service.yaml
│   ├── customers-service-deployment.yaml
│   ├── customers-service-service.yaml
│   ├── discovery-server-deployment.yaml
│   ├── discovery-server-service.yaml
│   ├── distr-persistentvolumeclaim.yaml
│   ├── tracing-server-deployment.yaml
│   ├── tracing-server-service.yaml
│   ├── vets-service-deployment.yaml
│   ├── vets-service-service.yaml
│   ├── visits-service-deployment.yaml
│   └── visits-service-service.yaml
└── templates1

3 directories, 17 files

Run helmtrans

helmtrans yamltohelm -p templates -o templates1
ERROR: assignment to entry in nil map

patsevanton avatar Jul 22 '21 10:07 patsevanton

Same problem when I try to read a group of yamls into a folder (darwin/mac release)

ERROR: assignment to entry in nil map

jmorcar avatar Aug 26 '22 12:08 jmorcar

Could it be this fucntion where print that ERROR message?

https://github.com/codeandcode0x/helmtrans/blob/0e874e633e69a9687f6485cadca7375ac24f0f8f/src/util.go#L429

Here reference to "ERROR:" message... it shoud build the "ERROR: assignment to entry in nil map" , right?

image image

The commad seems call to this concatenate functions but I don't find the final functions to do the yaml conversion from helm :

image

Because ScanRestFile (latest func to call in Yamltohelm) is not referenced any more to continue conversion:

image

jmorcar avatar Aug 26 '22 13:08 jmorcar