def x = [["spec": ["template": ["spec": ["containers": [], "volumes": []]]]]] def y = x.find{it} y.spec.template.spec.volumes.add(["x": 1]) x