Commit 2e09344f authored by Klaus Aehlig's avatar Klaus Aehlig

Add andRestArguments to IDiskParams

In this way, we cann pass through the opaque parameters
required for disk creation and modification in the case of
external storage.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 4e4821bd
......@@ -357,6 +357,7 @@ $(buildObject "IDiskParams" "idisk"
, optionalField $ simpleField C.idiskName [t| NonEmptyString |]
, optionalField $ simpleField C.idiskProvider [t| NonEmptyString |]
, optionalField $ simpleField C.idiskSpindles [t| Int |]
, andRestArguments "opaque"
])
-- | Disk changes type for OpInstanceRecreateDisks. This is a bit
......
......@@ -95,7 +95,7 @@ instance Arbitrary IDiskParams where
arbitrary = IDiskParams <$> arbitrary <*> arbitrary <*>
genMaybe genNameNE <*> genMaybe genNameNE <*>
genMaybe genNameNE <*> genMaybe genNameNE <*>
genMaybe genNameNE <*> arbitrary
genMaybe genNameNE <*> arbitrary <*> genAndRestArguments
instance Arbitrary RecreateDisksInfo where
arbitrary = oneof [ pure RecreateDisksAll
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment