Groovy web console

subscribe to the feed Subscribe
to this
site

Groovy Thing

Published 4 weeks ago by tyghe
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def x = [["spec": ["template": ["spec": ["containers": [], "volumes": []]]]]]
def y = x.find{it}
y.spec.template.spec.volumes.add(["x": 1])
x