From 311b26b175fedc80940a097ce07dd9ad6a79cb64 Mon Sep 17 00:00:00 2001 From: Alexander Wels Date: Thu, 20 Jun 2024 15:08:17 -0500 Subject: [PATCH] Allow setting of image for block rync 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 --- state_transfer/transfer/blockrsync/options.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/state_transfer/transfer/blockrsync/options.go b/state_transfer/transfer/blockrsync/options.go index b37e9ee..9e2e338 100644 --- a/state_transfer/transfer/blockrsync/options.go +++ b/state_transfer/transfer/blockrsync/options.go @@ -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 +}