redhat-developer / web-terminal-operator

OpenShift Console Web Terminal
MIT License
41 stars 15 forks source link

Support automatically updating existing DevWorkspaceTemplates #110

Closed amisevsk closed 2 years ago

amisevsk commented 2 years ago

Is your enhancement related to a problem? Please describe.

Currently, WTO only creates DevWorkspaceTemplates to support Web Terminals, but does not update existing ones on startup in case the user has customized them. In the coming release, these templates will need to be updated to support the new tooling and exec images, so WTO will need to implement a mechanism for updating templates on startup.

Describe the solution you'd like

By default, WTO should update DevWorkspaceTemplates on every start-up. A special annotation should be available to disable this functionality in case a user wants to override e.g. the image used for tooling. The diff for each update should be logged for information purposes.

Additional context

amisevsk commented 2 years ago

Woops, this didn't get ticked off my TODO list when I created https://github.com/redhat-developer/web-terminal-operator/pull/97. This issue is already resolved :D