odo icon indicating copy to clipboard operation
odo copied to clipboard

Pull application from cluster (Devfile as a ConfigMap in the cluster)

Open rm3l opened this issue 3 years ago • 5 comments

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 delete logic 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-watch flag

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

rm3l avatar Jun 23 '22 09:06 rm3l

Blocked by #5933

cdrage avatar Aug 02 '22 13:08 cdrage