Skip to content

Commit

Permalink
Make a getter for the deleteUnknownVolumes command line option (#109)
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Floeder <[email protected]>
  • Loading branch information
ajfloeder authored Sep 12, 2024
1 parent 198c529 commit f862bc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ type Options struct {
deleteUnknownVolumes bool // Delete volumes not represented by a storage pool at the end of initialization
}

func (o *Options) DeleteUnknownVolumes() bool {
return o.deleteUnknownVolumes
}

func newDefaultOptions() *Options {
return &Options{mock: false, cli: false, persistence: true}
}
Expand Down

0 comments on commit f862bc7

Please sign in to comment.