nginx-loadbalancer-kubernetes icon indicating copy to clipboard operation
nginx-loadbalancer-kubernetes copied to clipboard

Initialize Certificates Map to Avoid Nil Map Panic

Open ciroque opened this issue 1 year ago • 0 comments

In the NewCertificates method, the Certificates field is initialized to nil, which could cause a panic when trying to insert key-value pairs into the map. It should be initialized to an empty map instead: Certificates: make(map[string]map[string][]byte).

ciroque avatar Oct 24 '23 22:10 ciroque