From 326410d7e29e7d7738fdc1186e9a39a95e8c92bc Mon Sep 17 00:00:00 2001 From: Anthony Floeder Date: Thu, 12 Sep 2024 14:46:09 -0500 Subject: [PATCH] Make a getter for the deleteUnknownVolumes command line option Signed-off-by: Anthony Floeder --- pkg/controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller.go b/pkg/controller.go index b57dff2..ae1af55 100644 --- a/pkg/controller.go +++ b/pkg/controller.go @@ -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} }