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" |