Skip to content

Commit e53b433

Browse files
committed
use correct name for flag to control support for enabling/disabling legacy volume creation
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
1 parent 17861f7 commit e53b433

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/stackit-csi-plugin/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var (
2525
provideControllerService bool
2626
provideNodeService bool
2727
legacyStorageMode bool
28-
blockVolumeCreation bool
28+
legacyVolumeCreation bool
2929
)
3030

3131
func main() {
@@ -76,7 +76,7 @@ func main() {
7676
"If set to true then the CSI driver does provide the node service (default: true)")
7777
cmd.PersistentFlags().BoolVar(&legacyStorageMode, "legacy-storage-mode", false,
7878
"Configures the CSI to listen to the legacy storage driverName cinder.csi.openstack.org instead")
79-
cmd.PersistentFlags().BoolVar(&blockVolumeCreation, "block-volume-creation", false, "Block volume creation")
79+
cmd.PersistentFlags().BoolVar(&legacyVolumeCreation, "legacy-volume-creation", true, "Enable or disable support for creating volumes with the old driverName (cinder.csi.openstack.org)")
8080

8181
stackit.AddExtraFlags(pflag.CommandLine)
8282

@@ -96,7 +96,7 @@ func handle() {
9696
driverOpts.LegacyDriverName = true
9797
}
9898

99-
if blockVolumeCreation {
99+
if !legacyVolumeCreation {
100100
driverOpts.BlockVolumeCreation = true
101101
}
102102

0 commit comments

Comments
 (0)