Skip to content

amtool: add support for stdin to config routes test #2776

@MPV

Description

@MPV

What did you do?

$ command-that-outputs-generated-alertmanager-config | docker run --rm \
        --entrypoint amtool --name alertmanager -i \
        -v $PWD:/work -w /work \
        quay.io/prometheus/alertmanager \
        config routes test alertname="foo", severity="critical"

What did you expect to see?

Validation of my routes passed via stdin.

Similar to what was added support for in #1431

What did you see instead? Under which circumstances?

amtool: error: You have to specify one of --config.file or --alertmanager.url flags.

I also tried passing - (common identifier for stdin) as --config.file=-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions