Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[BUG] must be a mapping #1986

Open
az-z opened this issue Jan 29, 2025 · 4 comments
Open

[BUG] must be a mapping #1986

az-z opened this issue Jan 29, 2025 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@az-z
Copy link

az-z commented Jan 29, 2025

Expected Behavior

hello,
thank you for the project!

Expected behavior :
expect to have docker-compose converted into k3s/k8s deployment file

Actual Behavior

Steps To Reproduce

curl -L https://github.com/kubernetes/kompose/releases/download/v1.35.0/kompose-linux-amd64 -o ~/bin/kompose && chmod +x ~/bin/kompose

cd playground
kompose -f docker-compose.yml convert

Kompose Version

kompose version
1.35.0 (9532ceef3)

Docker-Compose file

services:

  vault-agent:
    build:
      context: .
      dockerfile: vault_agent/Dockerfile
    depends_on:
      vault: service_started

  vault:
    image: hashicorp/vault:latest

Anything else?

I chopped down the compose file just to be able to reproduce the conversion error.

@az-z az-z added the kind/bug Categorizes issue or PR as related to a bug. label Jan 29, 2025
@utkarsh-singh1
Copy link
Contributor

full error seems to be

FATA Unable to load files: validating /home/user/docker-compose.yaml: services.vault-agent.depends_on.vault must be a mapping

@utkarsh-singh1
Copy link
Contributor

Hey @az-z, can you provide full config of your docker-compose file.

@utkarsh-singh1
Copy link
Contributor

I have used docker-compose file from here. And I am not getting any error.

Ouput

INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "web-tcp-service.yaml" created
INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created
INFO Kubernetes file "web-deployment.yaml" created

@az-z
Copy link
Author

az-z commented Mar 6, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants