-
Notifications
You must be signed in to change notification settings - Fork 771
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
Improving down
to handle Volumes
#255
Comments
@dustymabe I think $ $ kompose down --help
NAME:
kompose down - Delete instantiated services/deployments from kubernetes
USAGE:
kompose down [command options] [arguments...]
OPTIONS:
--emptyvols Use Empty Volumes. Don't generate PVCs |
There is a bigger question. If user deployed using Easiest solution in the case of PVC might be to always try delete PVC (basicaly always assume |
Right. It's because there is no clue in docker-compose file that lets us know if pvc was created or not. From UX perspective Should we automatically/transparently add a kompose label for pvc to the original docker-compose file once user chooses to create pvc object ? OR should we update the strategy of generating pvc by adding label ? |
Agreed it is weird. We should force user to think about such things.
Annotating controller with additional information about what was used for conversion might be in general great idea. Other think that we could do is to actually inspect controller object and find out if it uses PVC or not. But i don't know how complicated this might be |
for |
I was thinking about this also, but what if user deploys two different application (docker-compose.yml files) to one namespace? |
we could: 1 - try to use a unique name |
down
to handle PVC
to improve doing down, we should label artifacts at creation time saying that those artifacts were created using kompose, then while deleting we only delete things that has those label? that label could look like this:
|
@surajssd what is How about we do it like this: |
@kadel I agree on using |
@kadel with With each service having different labels we will have to loop over the service names to delete the artifacts. |
Had a discussion with @kadel and we found out that there is a function |
Was going to type this in the PR but here goes: So I think this is awesome and amazing code @procrypt What I'd like to discuss though, is should we really be putting these labels in when we Honestly, most of our users simply convert, look at the conversion and then With this PR, we're adding selectors as well as a metadata section that includes The point of this PR is to implement What I'm getting at is should we "hide" these labels and implement them ONLY when the user |
In 7349dc9 i'm proposing adding --emptyvols to the up/down operations. This raises a bigger question on whether we should enable passing the other convert options so that they can be used with up/down - this can be useful, but maybe not something we want to do.
The text was updated successfully, but these errors were encountered: