Created
August 6, 2015 14:07
-
-
Save antoineroux/282cee7b84124af52dbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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