Files @ c9e2108bb271
Branch filter:

Location: pomerium/tasks.py

drewp@bigasterisk.com
pom deploy touchups
from invoke import task
from invoke.exceptions import UnexpectedExit
@task
def delete(ctx):
    ctx.run("cd 30-cert-manager; skaffold delete")
    ctx.run("cd 20-kube; skaffold delete")
    ctx.run("cd 10-vols; skaffold delete")
    ctx.run("cd 00-defs; skaffold delete")

@task
def run(ctx):
    ctx.run("cd 00-defs; skaffold run", echo=True)
    ctx.run("cd 10-vols; skaffold run", echo=True)
    ctx.run("cd 20-kube; skaffold run", echo=True)
    # here we must wait for cert-manager-webhook.cert-manager.svc
    ctx.run("cd 30-cert-manager; skaffold run", echo=True, warn=True)
    ctx.run("cd 30-cert-manager; skaffold run", echo=True)

    try:
        ctx.run("kubectl get -n pomerium ingress | grep 80")
    except UnexpectedExit:
        raise SystemExit("expected cm-acme-http-solver-... ingress on port 80")