-
Notifications
You must be signed in to change notification settings - Fork 792
[BUG] Kompose should raise and error when profiles are required #1748
Copy link
Copy link
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Expected Behavior
Resources generated with compose
kompose convert -f docker-compose.yaml -c -v (version 1.29)
output
kompose convert -f docker-compose.yaml -c -v
DEBU Checking validation of provider: kubernetes
DEBU Checking validation of controller:
INFO Network ***-default is detected at Source, shall be converted to equivalent NetworkPolicy at Destination
DEBU Target Dir: docker-compose
INFO Kubernetes file "docker-compose/templates/web-service.yaml" created
INFO Kubernetes file "docker-compose/templates/web-deployment.yaml" created
INFO Kubernetes file "docker-compose/templates/***-default-networkpolicy.yaml" created
INFO chart created in "docker-compose/"
Actual Behavior
No resources generated with compose
kompose convert -f docker-compose.yaml -c -v
output
DEBU Checking validation of provider: kubernetes
DEBU Checking validation of controller:
DEBU Target Dir: docker-compose
INFO chart created in "docker-compose/"
Steps To Reproduce
- Create
docker-compose.yamlwith service and profile kompose convert -f docker-compose.yaml -c- no templates created
Kompose Version
1.31.2 (a92241f79)
(not working 1.30.0 (9d8dcb518))
(works fine 1.29.0 (997957870))
Docker-Compose file
version: '3'
services:
web:
image: nginx
profiles:
- test
ports:
- 80:80Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.