jkube icon indicating copy to clipboard operation
jkube copied to clipboard

Replace deprecated method from Updatable interface

Open arman-yekkehkhani opened this issue 1 year ago • 2 comments

Component

None

Task description

Description

Method Updatable.replace is used in several places in the project. However, the method is deprecated, and Javadoc advises using the method update instead. The reason behind it is explained in alternatives-to-createOrReplace-and-replace.

arman-yekkehkhani avatar Jun 21 '24 13:06 arman-yekkehkhani

We should start by listing the places where this method is used and then evaluate the strategy to replace it one by one (edit, update, and so on).

manusa avatar Jun 25 '24 09:06 manusa

@manusa Thanks! I searched through the project and found out that this method was only used in method updateImageName of class DockerImageWatcher. There were a few test cases in DockerImageWatcherRestartContainerTest that used it also.

arman-yekkehkhani avatar Jun 27 '24 10:06 arman-yekkehkhani

@manusa please assign it to me.

abusk avatar Sep 02 '24 05:09 abusk