Skip to content

Commit

Permalink
preserve the resourceVersion of the consolePlugin
Browse files Browse the repository at this point in the history
preserve the resourceVersion of the consolePlugin
which is required for consolePlugin update.

Signed-off-by: Madhu Rajanna <[email protected]>
  • Loading branch information
Madhu-1 committed Oct 26, 2023
1 parent 76e5851 commit ef1052c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/clusterversion_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ func (c *ClusterVersionReconciler) ensureConsolePlugin() error {

consolePlugin := console.GetConsolePlugin(c.ConsolePort, c.OperatorNamespace)
err = c.createOrUpdate(consolePlugin, func() error {
// preserve the resourceVersion of the consolePlugin
resourceVersion := consolePlugin.ResourceVersion
console.GetConsolePlugin(c.ConsolePort, c.OperatorNamespace).DeepCopyInto(consolePlugin)
consolePlugin.ResourceVersion = resourceVersion
return nil
})

Expand Down

0 comments on commit ef1052c

Please sign in to comment.