예제 #1
0
def _create(app, ctx, tag, apply, record=False):
    if tag:
        ctx.config["kubernetes"]["image"]["tag"] = tag
    t = render_template(config=ctx.config,
                        template_name=SUMO_APP_TEMPLATE,
                        app=app)
    k8s_apply(ctx, t, apply, record)
예제 #2
0
def create_nodeport(ctx, apply=False, infra_apply=False):
    """
    Create or update a SUMO nodeport
    """
    t = render_template(config=ctx.config,
                        template_name=SUMO_NODEPORT_TEMPLATE)
    k8s_apply(ctx, t, apply)
예제 #3
0
def create_nodeport(ctx, apply=False, infra_apply=False):
    """
    Create or update a SUMO nodeport
    """
    t = render_template(config=ctx.config,
                        template_name=SUMO_NODEPORT_TEMPLATE)
    k8s_apply(ctx, t, apply)
예제 #4
0
def create_cron(ctx, apply=False):
    """
    Create or update a SUMO cron deployment
    """
    t = render_template(config=ctx.config,
                        template_name=SUMO_CRON_TEMPLATE)
    k8s_apply(ctx, t, apply)
예제 #5
0
def create_web(ctx, apply=False):
    """
    Create or update a SUMO web deployment
    """
    t = render_template(config=ctx.config,
                        template_name=SUMO_WEB_TEMPLATE)
    k8s_apply(ctx, t, apply)
예제 #6
0
파일: deployments.py 프로젝트: zu83/kitsune
def _create(app, ctx, tag, apply):
    if tag:
        ctx.config['kubernetes']['image']['tag'] = tag
    t = render_template(config=ctx.config,
                        template_name=SUMO_APP_TEMPLATE,
                        app=app)
    k8s_apply(ctx, t, apply)
예제 #7
0
def _create(app, ctx, tag, apply):
    if tag:
        ctx.config['kubernetes']['image']['tag'] = tag
    t = render_template(config=ctx.config,
                        template_name=SUMO_APP_TEMPLATE,
                        app=app)
    k8s_apply(ctx, t, apply)
예제 #8
0
def create_cron(ctx, apply=False):
    """
    Create or update a SUMO cron deployment
    """
    t = render_template(config=ctx.config, template_name=SUMO_CRON_TEMPLATE)
    k8s_apply(ctx, t, apply)
예제 #9
0
def create_web(ctx, apply=False):
    """
    Create or update a SUMO web deployment
    """
    t = render_template(config=ctx.config, template_name=SUMO_WEB_TEMPLATE)
    k8s_apply(ctx, t, apply)