Skip to content

Change the way resources yaml file is being loaded #106

@zroubalik

Description

@zroubalik

At the moment the resources file is being loaded into the operator during the startup:

resourcesManifest, err := resources.GetResourcesManifest()
if err != nil {
return err
}
manifestGeneral, manifestController, manifestMetrics, err := parseManifestsFromFile(resourcesManifest, r.Client)
if err != nil {
return err
}

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions