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

Fix the method for converting Docker Compose to K8 Manifest. #623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shanukun
Copy link

@shanukun shanukun commented Dec 14, 2024

Description

Kind: List was discarded by kompose in kubernetes/kompose#1541. That's why Meshkit is unable to format the output and is returning an empty K8 manifest string.

kompose (> 1.31.1) can support Docker Compose 3.9, although not the version (v1.26.2) used in meshery/meshery.
We can simplify the implementation of the Convert method by updating kompose and using the new client/interface (kubernetes/kompose#1593). We will need to bump the kompose version in meshery too.

Also, it seems there is no support for Profiles in meshery. Right now it is simply ignored. Meshery's API and UI will need to be updated to accommodate it.

This PR fixes:
meshery/meshery#12495
Part of meshery/meshery#10450

Notes for Reviewers
Removing the format function and returning the output without formatting can be a straightforward fix. (quick fix).

Signed commits

  • Yes, I signed my commits.

Copy link

welcome bot commented Dec 14, 2024

Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, please review the Layer5 Community Welcome Guide and sure to join the community Slack.
Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.

@shanukun shanukun marked this pull request as ready for review December 14, 2024 01:39
@shanukun
Copy link
Author

@leecalcote can you please review it?

@leecalcote
Copy link
Member

@nebula-aac, help, help

@leecalcote leecalcote requested a review from a team December 20, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants