Skip to content

Commit

Permalink
fix: copy image transform by value (#2969)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored Dec 11, 2024
1 parent f1b57bc commit c414ec8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/config/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ func (s *storage) FromRemoteStorageConfig(remoteConfig v1API.StorageConfigRespon

func (s *storage) DiffWithRemote(remoteConfig v1API.StorageConfigResponse) ([]byte, error) {
copy := *s
if s.ImageTransformation != nil {
img := *s.ImageTransformation
copy.ImageTransformation = &img
}
// Convert the config values into easily comparable remoteConfig values
currentValue, err := ToTomlBytes(copy)
if err != nil {
Expand Down

0 comments on commit c414ec8

Please sign in to comment.