keda-olm-operator icon indicating copy to clipboard operation
keda-olm-operator copied to clipboard

Change the way resources yaml file is being loaded

Open zroubalik opened this issue 2 years ago • 4 comments

At the moment the resources file is being loaded into the operator during the startup: https://github.com/kedacore/keda-olm-operator/blob/cbd80d4af6e95d5f0ad36af6631d3a8a008c5e3e/controllers/keda/kedacontroller_controller.go#L76-L83

It would be better to use go embed feature introduced in Go 1.16: https://golangtutorial.dev/tips/embed-files-in-go/

zroubalik avatar Aug 25 '21 08:08 zroubalik