Skip to content

Commit

Permalink
Allow setting of image for block rync (#123)
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 <awels@awels.wels.home>
Co-authored-by: Alexander Wels <awels@awels.wels.home>
  • Loading branch information
awels and Alexander Wels authored Jun 20, 2024
1 parent 0d2b61f commit ad52529
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 ad52529

Please sign in to comment.