login Signup

How do I read JSON for a Container's VolumeMount?

The ElectricFlow Container object has a parameter named volume that accepts text, and that text has to be in JSON format.

In my DSL, I have a JSON file that specifies the data structure exactly ("volumeMounts" :)

[{"name" : "tmp-volume", "mountPath" : "/tmp"}, {"name" : "tmp-volume2", "mountPath" : "/tmp2"}, {"name" : "tmp-volume3", "mountPath" : "/tmp3"} %|-1485149072_1|%

I can't seem to do this type of assignment in EF DSL for my Container definition:

volumeMount = referenceToJsonFile.volumeMounts

While this may be more of a groovy question, it does have to do with an uncommon data input to ElectricFlow - supplying JSON. Ordinarily, we can create a list of most objects. Here, the volumeMounts have to be supplied as a list in JSON. That may be the only occurrence of this type of data entry I've seen when using the Application/Services models.

avatar image By marcoman 2.2k asked Jan 02 at 10:13 PM
more ▼
(comments are locked)
10|750 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.