Skip to content

Commit

Permalink
Merge pull request #155 from leelavg/remove-deep
Browse files Browse the repository at this point in the history
remove extra deep copy of object from cache
  • Loading branch information
nb-ohad authored Nov 6, 2024
2 parents 2e1f364 + 708e7b0 commit 5751fd0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/controller/driver_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,6 @@ func (r *driverReconcile) LoadAndValidateDesiredState() error {
r.images = maps.Clone(imageDefaults)

if opConfig.Spec.DriverSpecDefaults != nil {
// Creating a copy of the driver spec, making sure any local changes will not effect the object residing
// in the client's cache
r.driver.Spec = *r.driver.Spec.DeepCopy()
mergeDriverSpecs(&r.driver.Spec, opConfig.Spec.DriverSpecDefaults)

// If provided, load an imageset from configmap to overwrite default images
Expand Down

0 comments on commit 5751fd0

Please sign in to comment.