azuredisk-csi-driver icon indicating copy to clipboard operation
azuredisk-csi-driver copied to clipboard

[V2] DriverV2 should use AzDiskDriverConfiguration instead of duplicating config fields

Open edreed opened this issue 2 years ago • 1 comments

Is your feature request related to a problem?/Why is this needed

Describe the solution you'd like in detail

Now that the V2 driver supports configuration from the AzDiskDriverConfiguration struct, it should reference and use the struct rather than copy the config values into individual fields. Some of these duplicate fields are defined in the DriverCore struct which is shared between the Driver and DriverV2 structs. These fields should be moved to Driver to avoid the duplication. The DriverV2 struct should replace the config fields usage with a single config field that points to the AzDiskDriverConfiguration object.

Describe alternatives you've considered

Additional context

edreed avatar Aug 12 '22 20:08 edreed

/assign

hccheng72 avatar Aug 12 '22 21:08 hccheng72