Skip to content

loop over 2-dimensional array of mounts? #747

Answered by strowi
strowi asked this question in Q&A
Discussion options

You must be logged in to vote

Ok,after hours of fiddling with this it took me this post + 5min. to find std.flattenArrays() which works:

+ container.withVolumeMounts(std.flattenArrays(volumeMounts)),
...
+ stateful.spec.template.spec.withVolumesMixin(std.flattenArrays(volumes))

But other/better suggestions are welcome;)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by strowi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant