containers / containers/podlet

Feature Request: add `(--pod/--kube) --name` parameter

Open
#131 3 comments 6 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
1.6k
Forks
48
Avg merge
1d 9h
Merged PRs (30d)
1

Description

A docker-compose file doesn't require a top-level name field, but when using a nameless file as input to `podlet compose --pod`, the following error message appears:
```
[root@digitalocean ztnet]# podlet compose --pod
Error:
0: error converting compose file
1: `name` is required when using `--pod`

Location:
src/cli/compose.rs:130

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
```
That error message doesn't specify that `name` is a field in the docker compose file, which I think should also be updated for clarity, but I would also prefer if I could simply provide the name of the pod on the command line so that I could use unmodified compose files as input

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.