-
Notifications
You must be signed in to change notification settings - Fork 244
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
odo config volumes do not have owner references #2693
Comments
The issue is in function https://github.com/openshift/odo/blob/master/pkg/occlient/volumes.go#L187
the
the
In #2472, we've had to change the flow a bit because of this. We tried to do the same way as non-experimental odo(storage push, generate dc, add volume and mounts to dc, create dc, update pvc with owner reference from dc). But right now, with non experimental mode for devfile, it is:
|
This is currently expected behavior as we don't want to delete user defined pvcs when user deletes the component. |
so this is not a bug |
It same as #2710 or the other way :) |
if it is expected behavior than |
I'm actually starting to incline towards deleting the pvcs. As a user I would expect that it gets deleted when I delete the component. Originally we were thinking that we wouldn't delete the storage as we had a mechanism to unmount storage from one component and mount it to another one, but that functionality was dropped, so now it actually makes sense to delete pvcs, as they have no use after the component is deleted, and users don't have any mechanism to access that pvc using just odo. |
Resolved with this PR #2750 |
@adisky: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug
What versions of software are you using?
Operating System: MacOS
Output of
odo version
:How did you run odo exactly?
odo create
, add storage to.odo/config.yaml
andodo push
Actual behavior
Noticed this when working on #2472
When i delete the deployment config, the volumes/pvc defined in config.yaml are not deleted
Expected behavior
When you delete the deployment config, the volumes/pvc defined in config.yaml should be deleted
Any logs, error output, etc?
printed pvc after owner refs were added in https://github.com/openshift/odo/blob/master/pkg/occlient/volumes.go#L187
oc get po,dc,pvc
oc get pvc maysunvol-app-pvc -o yaml
config.yaml
The text was updated successfully, but these errors were encountered: