Closed pierrebeitz closed 4 years ago
we also need to add readonly
for CSIVolumeInfo
as per @qianzhangxa's comment in slack:
readonly==true indicates CSI plugin must publish the volume in readonly mode, it is actually orthogonal to accessMode.
This looks good!
Just a side note, we're going to want to extend the secrets validation logic here, I believe. The Mesos secrets directive should also validate per the DCOS_SPACE label which is auto-set by the Marathon dcos plugins logic.
Jira: MARATHON-8765
supersedes #7212.
after talking to @timcharper and @kaiwalyajoshi, we figured that going with the approach of pushing the CSI Volume configuration into the existing
AppExternalVolume
is more coherent with existing API while introducing less concepts.⚠️ i chose to make
mode
optional so users don't need to specify it for csi-volumes, asaccessMode
seems to hold all information we need. if we go with this, we'd need to add an additional validation for DVDI volumes.@timcharper as discussed yesterday: it's a union type for now but does not need to stay one, if the error messages are confusing this way.
i chose not to prefix all the options with
csi/
like it seems to be usual for dvdi-options. should we add those for consistency or do you think that it's fine this way?JSON
here's an app definition in JSON as that requires less brain cycles to understand.
App with CSI Volume
With Minimal Config
here's an example without optional properties. note how
accessType
now is specified as a string, as block volumes don't need any configuration.App with DVDI Volume for Comparison