-
Notifications
You must be signed in to change notification settings - Fork 793
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.
Description
Expected Behavior
Given:
services:
frontend:
image: example/webapp
deploy:
resources:
limits:
cpus: '0.50'
memory: 50M
pids: 1
reservations:
cpus: '0.25'
memory: 20M
when I execute kompose -f docker-compose.yaml convert
I would like to have the memory better readable (e.g. 20Mi / 50Mi).
Actual Behavior
currently I get it like this:
[...]
spec:
containers:
- image: example/webapp
name: frontend
resources:
limits:
cpu: 500m
memory: "52428800"
requests:
cpu: 250m
memory: "20971520"
[...]
Steps To Reproduce
kompose -f docker-compose.yaml convert
Kompose Version
1.37.0 (HEAD)
Docker-Compose file
services:
frontend:
image: example/webapp
deploy:
resources:
limits:
cpus: '0.50'
memory: 50M
pids: 1
reservations:
cpus: '0.25'
memory: 20MAnything else?
No response
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.Denotes an issue or PR has remained open with no activity and has become stale.