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
Mechanism for override file to **remove** element #284
Comments
For It now distinguishes between I'm mentioning because it's almost the exact opposite semantically - if the user specifies We COULD do something similar for merging such that |
I wonder if during merging we need to have the original project in |
also see docker/compose#8699 |
This indeed will require compose-go to distinguish a field being set to default value vs an explicit |
What is the problem you're trying to solve
compose.yaml can be merged to override attributes, but there's no way to REMOVE an element
Describe the solution you'd like
Some way for user to explicitly define an key to REMOVE element in overridden compose model
An interesting proposal is to rely on yaml
null
syntax:Using this, whenever the base compose file might define
ports
forapp
service, the merged model with such an explicitnull
attribute will have no port set.The text was updated successfully, but these errors were encountered: