Skip to content

Restart pod on Podman when related information is changed in Devfile #6458

@rm3l

Description

@rm3l

/kind user-story

User Story

As a user running odo against Podman, I want changes to my Devfile to be detected and applied, So that I can continuously iterate on my project without having to restart odo dev manually.

Restarting odo dev manually every time I edit something in the Devfile can be annoying and time-consuming.

Currently, it detects any changes to the Devfile and warns users that odo dev needs to be restarted (see #6336). Even changes that would not affect the running Pod (like changes to the build or run commands) are ignored.

Acceptance Criteria

  • [ ] It should recreate the Pod on Podman if there are changes in the Devfile that would modify the Pod spec (e.g., changes in the container component, ...)
  • [ ] It should not recreate the Pod on Podman if there are changes in the Devfile that would not modify the Pod spec (e.g., changes to the run command only)
  • [ ] Similarly to how odo dev works against a cluster, it should notify users of the current Pod state
  • [ ] Similarly to how odo dev works against a cluster, external factors that might affect the running Pod should also be handled by recreating the Pod if needed (but that can be a separate issue)
  • For now, it should just recreate the Pod on Podman if there any changes in the Devfile
  • Update documentation: remove this point from the "Podman Support limitations" page

Links

/kind user-story

Metadata

Metadata

Assignees

Labels

area/devIssues or PRs related to `odo dev`area/odo-on-podmanIssues or PRs related to running odo against Podmankind/user-storyAn issue of user-story kindpriority/HighImportant issue; should be worked on before any other issues (except priority/Critical issue(s)).sprint demoIndicates an issue for which a demo should be recorded and presented at the end of the sprint.

Type

No type

Projects

Status

Done ✅

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions