Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
The build info is set via the linker in the main module on build time. This means that each main we have must have the variables defined to set. The main function then sets the values in the config to have a centralised place to use later.
We can directly set the values in the config using the linker using the path expression supported: github.com/apache/yunikorn-k8shim/pkg/conf.goVersion as an example. It also externalises the plugin flagĀ
Moving it all directly to the config also makes it possible to log all details in the same way, i.e. provide a build
Moving the building of the map and a stringified version of the info into the config also removes the need to export all variables in the config.
Attachments
Issue Links
- links to