Skip to content

Instantly share code, notes, and snippets.

View antoineroux's full-sized avatar

Antoine Roux antoineroux

View GitHub Profile
// Out of the box, just by Using a .groovy file, you get probably something like (not tested):
client replicationControllers() inNameSpace "test" withName "nginx" rolling() image "nginx:1.9.3"
// With some simple wrapping of the default API you could get to:
client replicationControllers inNameSpace "test" withName "nginx" rolling image "nginx:1.9.3"
// You can probably do something fancy like this:
client replicationControllers where {
nameSpace = "test"
name = "nginx"