Created
September 25, 2015 21:18
-
-
Save dfilppi/db8f6e58fd1fff3be806 to your computer and use it in GitHub Desktop.
sample-kub-workflow
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
@workflow | |
def kube_run(**kwargs): | |
setfabenv(kwargs) | |
optstr=buildopts(kwargs,{"dry_run":"dry-run"},{"port":"not _val_ == -1"},["dry_run"],['name','master']) | |
ctx.logger.info("Running: {}".format(optstr)) | |
run("./kubectl -s http://localhost:8080 run "+" "+kwargs['name']+optstr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment