Skip to content

Commit

Permalink
Allow setting of image for block rync
Browse files Browse the repository at this point in the history
There was no mechanism to allow overriding of the
default images for block rsync transfer pods. This
PR allows the user of block rsync to override
the used images

Signed-off-by: Alexander Wels <[email protected]>
  • Loading branch information
Alexander Wels committed Jun 20, 2024
1 parent 6757c8d commit 311b26b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions state_transfer/transfer/blockrsync/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,17 @@ func (t *TransferOptions) GetBlockrsyncClientImage() string {
}
return t.blockrsyncClientImage
}

type RsyncServerImage string

func (r RsyncServerImage) ApplyTo(opts *TransferOptions) error {
opts.blockrsyncServerImage = string(r)
return nil
}

type RsyncClientImage string

func (r RsyncClientImage) ApplyTo(opts *TransferOptions) error {
opts.blockrsyncClientImage = string(r)
return nil
}

0 comments on commit 311b26b

Please sign in to comment.