yipeeio / yipee

An opensource version of the Yipee.io editor.
Apache License 2.0
22 stars 7 forks source link

Delete model objects from the editor #12

Open jrryjcksn opened 5 years ago

jrryjcksn commented 5 years ago

Within the editor, provide a delete button (similar to apply) that passes a flat file to the backend to have all the object deleted. aka kubectl delete -f

jrryjcksn commented 5 years ago

Usecase - open a namespace, delete a few objects and then invoke the delete operation to remove all the model objects remaining from the namespace.

Alternate usecase - open a namespace, remove objects and apply the result which would update the namespace to reflect the updated model. i.e. perform deletes and any updates to the remaining objects. Although this seems much more difficult. - this would be leveraging the apply functionality where it diffs what is passed in and what is running and removes what isn't passed in.

jrryjcksn commented 5 years ago

Work on the delete namespace first. This is an optimization around the round-trip model. I suspect we only want the alternate usecase as that is what folks expect.