Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(compose): prepend container dependencies with pod name #115

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

k9withabone
Copy link
Member

When the podlet compose --pod option is used, the names of the services from the Compose file are prepended with the pod name. If a service had a dependency via the depends_on attribute, the name of the dependency was not similarly prepended with the pod name when added to the [Unit] section of the Quadlet file.

Changed podlet::cli::compose::service_try_into_quadlet_file() to handle all service name changes when the --pod option is used.

Fixes: #114

When the `podlet compose --pod` option is used, the names of the
services from the Compose file are prepended with the pod name. If a
service had a dependency via the `depends_on` attribute, the name of the
dependency was not similarly prepended with the pod name when added to
the `[Unit]` section of the Quadlet file.

Changed `podlet::cli::compose::service_try_into_quadlet_file()` to
handle all service name changes when the `--pod` option is used.

Fixes: #114
Signed-off-by: Paul Nettleton <k9@k9withabone.dev>
@k9withabone k9withabone added the bug Something isn't working label Sep 30, 2024
@k9withabone k9withabone added this to the v0.3.1 milestone Sep 30, 2024
@k9withabone k9withabone merged commit 952fa66 into main Oct 1, 2024
13 checks passed
@k9withabone k9withabone deleted the fix-compose-pod-dependencies branch October 1, 2024 23:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podlet compose --pod doesn't prepend requires with pod name
1 participant