Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1853

de-duplicate build info init and storage

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              yangpoan PoAn Yang
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: