-
Notifications
You must be signed in to change notification settings - Fork 792
[BUG] ConfigMap name clash if env_file name is equal #2000
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
All the used env_file configs should result in a separate ConfigMap file, even though the file name is the same. For this to work, the path of the file needs to be included in the file name to be unique.
Actual Behavior
If you use two env_files in docker-compose which are located in different folders and have the same name (e.g. one/custom.env and two/custom.env) this results in only one ConfigMap file in the rendered result. One env file is lost in the rendering.
Steps To Reproduce
No response
Kompose Version
1.35.0 (9532ceef3)
Docker-Compose file
services:
nginx:
image: nginx
env_file:
- ./one/custom.env
- ./two/custom.envAnything 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.