8 Commits

Author SHA1 Message Date
e963f26239 refactor(cmd): rework config initalization
Config initialization is done in the root command but some commands
do not require a config. If these commands are executed locally in the
checked out repo they work fine, but they will fail if they are
executed e.g. using the Docker image. I would have to provide
a config file path to the container and mount the referenced
file into the container even though it is not needed for the command.

This commit changes this by making those commands that require a
config load it themselves. It also pulls down the config flag to
the individual commands that require it instead of using a persistent
flag on the root level.
2023-04-11 16:56:12 +02:00
fd5183e06a fix(cmd/isready): use inbuilt func to parse config address 2023-03-27 15:24:02 +05:30
30271a76fe fix(cmd/isready): use localhost instead of loopback 2023-03-27 15:15:28 +05:30
8b2fea30c6 feat(cmd/isready): use log.Fatalf to return early 2023-03-26 11:29:13 +05:30
f5c0b19b02 feat(cmd/isready): add info about endpoint used 2023-03-26 11:26:27 +05:30
67a8122303 feat: impl sending request to health endpoints 2023-03-26 11:23:49 +05:30
c6f0b183ba feat(cmd/isready): parse arguments passed 2023-03-25 14:09:33 +05:30
1e4dfab361 feat(backend): initial scaffolding for isready cmd 2023-03-25 13:56:25 +05:30