odo
odo copied to clipboard
Pull application from cluster (Devfile as a ConfigMap in the cluster)
User Story
- As on odo user
- I want to be able to import/pull application running on the cluster (I don't have it's devfile, and I don't know where the source code is)
- So that I can make changes to the application and run it with my changes
Acceptance Criteria
- [ ] It should sync the Devfile content to a ConfigMap in the cluster ~~- [ ] It should watch for changes to this ConfigMap and handle them in its reconcile loop~~
- [ ] This ConfigMap should be the parent Kubernetes owner object of all the other objects odo creates (Deployments, Services, ...)
- [ ] This ConfigMap should be used whenever we need to retrieve all Kubernetes objects that pertain to the Devfile
- [ ] Leave room for extension in the ConfigMap spec
- [ ] Make sure the naming scheme allows to store this in a shared namespace. Naming scheme should be consistent with what will be done in https://github.com/redhat-developer/odo/issues/5862
- [ ] Update
odo deletelogic to use this - [ ] Make sure Devfile changes are handled even if the devfile.yaml is Git-ignore'd. For example, changes to the commands in the Devfile should cause the commands to be restarted in the container. See https://github.com/redhat-developer/odo/pull/5933#issuecomment-1204880533
- [ ] It should also not break the
--no-watchflag
Notes
- side effect odo codebase could be simplified (e.g., ownerReferences / deletion handling, selecting all dependent resources)
~~- Use new approach based on reconcile loop POC: https://github.com/feloy/odo-dev-controller-poc~~
Links
- Related Epic (mandatory): https://github.com/redhat-developer/odo/issues/5848
- Parent User Story: https://github.com/redhat-developer/odo/issues/5728
/kind user-story
Blocked by #5933