metalbear-co/mirrord Preview Environment
Start or stop a mirrord preview environment
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 10, 2026
- License
- MIT
Pinned Snippet
uses: metalbear-co/mirrord-preview@441260afa3bea790b133038a70e00914629d3ba6 # 0.1.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| action | Action to perform: "start" or "stop" | yes | — |
| target | Kubernetes target path (e.g. deployment/my-app). Required for start. | no | — |
| namespace | Kubernetes namespace of the target. Optional, defaults to current context namespace. | no | — |
| mode | Traffic mode: "steal" or "mirror". Default: steal | no | steal |
| filter | Header filter regex applied to incoming HTTP traffic (and future SQS/Kafka filters). May reference {key}. | no | — |
| ports | JSON array of HTTP filter ports, e.g. [80, 8080] | no | — |
| ttl_mins | Session time-to-live in minutes. Integer or "infinite". | no | — |
| image | Container image for the preview environment (e.g. myrepo/myapp:latest). Required for start. | no | — |
| key | Unique preview session key. Optional for start (auto-generated if omitted), required for stop. | no | — |
| cli_path | Path to mirrord cli, will be used instead of the latest version when specified. Note that this works by symlinking `/usr/local/bin/mirrord` to this path. | no | — |
| extra_config | JSON object merged into the generated mirrord.json. Allows setting any additional mirrord config options. Overrides generated fields if overlapping. | no | — |
Outputs
| name | description |
|---|---|
| session-key | The preview session key (extracted from mirrord CLI output) |