[BUG] Some setting do not respect ENV variables #252
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
Indicates an issue or PR lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Is there an existing issue for this?
Konveyor version
main / latest
Priority
Major
Current Behavior
There is a mixture of Settings between ENV-based settings from https://github.com/konveyor/kantra/blob/main/cmd/settings.go (using github.com/codingconcepts/env lib) and package-level variables from version.go file https://github.com/konveyor/kantra/blob/main/cmd/version.go#L12-L16.
Current behaviour is that methods from https://github.com/konveyor/kantra/blob/main/cmd/settings.go#L55-L109 do not respect environment default from https://github.com/konveyor/kantra/blob/main/cmd/settings.go#L25-L33, but look to version.go https://github.com/konveyor/kantra/blob/main/cmd/version.go#L12-L16.
Expected Behavior
Settings should use https://github.com/konveyor/kantra/blob/main/cmd/settings.go#L25-L33 as a primary source of truth without setting env variables on its own. So run
env.Set(c)
first and then modify its content in customload*
methods. This affect IMG_RUNNER, but also container engine and providers config.How Reproducible
Always (Default)
Steps To Reproduce
Environment
- OS:
Anything else?
Related PRs
The text was updated successfully, but these errors were encountered: