Skip to content

crictl config fails to create a missing explicit config file #2143

Description

@immanuwell

What happened:

crictl --config /tmp/crictl.yaml config --set debug=true fails if the file does not exist yet, even though the config command is supposed to bootstrap it.

What you expected to happen:

The command should create the file and write the requested setting.

How to reproduce it (as minimally and precisely as possible):

tmpdir=$(mktemp -d)
crictl --config "$tmpdir/crictl.yaml" config --set debug=true

Current result is a get server config error before the config command runs.

Anything else we need to know?:

This is a normal local CLI workflow. No special scale or boundary conditions are needed.

Environment:

Any host where crictl is run with a custom config path that does not exist yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions