Skip to content

Instantly share code, notes, and snippets.

@antoineroux
Created August 6, 2015 14:07
Show Gist options
  • Save antoineroux/282cee7b84124af52dbc to your computer and use it in GitHub Desktop.
Save antoineroux/282cee7b84124af52dbc to your computer and use it in GitHub Desktop.
// 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"
} rolling image "nginx:1.9.3"
// This last form might not be very easy to "guess" but I just wanted to show there are possibilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment