Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning log message about which config files to try #1657

Merged
merged 1 commit into from
Oct 24, 2024

Commits on Oct 24, 2024

  1. 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]>
    saschagrunert committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    12f155d View commit details
    Browse the repository at this point in the history