Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning log message about which config files to try
If the specified `--config` does not exist, then crictl will try the binary directory as last resort. We now log that behavior so that end users don't think unintentionally they specified the wrong `--config` value: ``` > sudo ./build/bin/linux/amd64/crictl --config ~/downloads/crictl.yaml config --list WARN[0000] Config "/home/x/downloads/crictl.yaml" does not exist, trying: "/home/s/go/src/sigs.k8s.io/cri-tools/build/bin/linux/amd64/crictl.yaml" FATA[0000] load config file: stat /home/sascha/go/src/sigs.k8s.io/cri-tools/build/bin/linux/amd64/crictl.yaml: no such file or directory ``` Signed-off-by: Sascha Grunert <[email protected]>
- Loading branch information