k3s/pkg/configfilearg
Brad Davidson 1026d10203 Fix MustFindString returning override flags on external CLI commands
External CLI actions cannot short-circuit on --help or --version, so we
cannot skip loading the config file if these flags are present when
running these wrapped commands. The behavior of just returning the
override flag name instead of the requested flag value was breaking
data-dir lookup when running wrapped commands.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit ff5c633fe7)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-11-06 13:18:20 -08:00
..
testdata Fix inconsistent loading of config dropins when config file does not exist 2024-07-29 17:00:06 -07:00
defaultparser.go Fix MustFindString returning override flags on external CLI commands 2024-11-06 13:18:20 -08:00
defaultparser_test.go Fix MustFindString returning override flags on external CLI commands 2024-11-06 13:18:20 -08:00
parser.go Fix inconsistent loading of config dropins when config file does not exist 2024-07-29 17:00:06 -07:00
parser_test.go Fix inconsistent loading of config dropins when config file does not exist 2024-07-29 17:00:06 -07:00