def delete_cron(ctx, apply=False, infra_apply=False): """ Delete an existing SUMO cron deployment """ deployment = 'deploy/{}'.format(ctx.config['SUMO_CRON_DEPLOYMENT_NAME']) k8s_delete_resource(ctx, deployment, apply)
def delete_cron(ctx, apply=False, infra_apply=False): """ Delete an existing SUMO cron deployment """ deployment = 'deploy/{}'.format(ctx.config['SUMO_CRON_DEPLOYMENT_NAME']) k8s_delete_resource(ctx, deployment, apply)
def delete_nodeport(ctx, apply=False, infra_apply=False): """ Delete an existing SUMO nodeport """ if infra_apply: deployment = 'deploy/{}'.format(ctx.config['SUMO_NODEPORT_NAME']) k8s_delete_resource(ctx, deployment, apply) else: print("Infra tasks require an additional --infra-apply confirmation")
def delete_nodeport(ctx, apply=False, infra_apply=False): """ Delete an existing SUMO nodeport """ if infra_apply: deployment = 'deploy/{}'.format(ctx.config['SUMO_NODEPORT_NAME']) k8s_delete_resource(ctx, deployment, apply) else: print("Infra tasks require an additional --infra-apply confirmation")
def delete_nodeport(ctx, apply=False, infra_apply=False): """ Delete an existing SUMO nodeport """ if infra_apply: deployment = "deploy/{}".format( ctx.config["kubernetes"]["nodeport_name"]) k8s_delete_resource(ctx, deployment, apply) else: print("Infra tasks require an additional --infra-apply confirmation")
def _delete(app, ctx, apply): deployment = "deploy/{}".format( ctx.config["kubernetes"]["apps"][app]["deployment_name"]) k8s_delete_resource(ctx, deployment, apply)
def _delete(app, ctx, apply): deployment = 'deploy/{}'.format( ctx.config['kubernetes']['apps'][app]['deployment_name']) k8s_delete_resource(ctx, deployment, apply)
def _delete(app, ctx, apply): deployment = 'deploy/{}'.format(ctx.config['kubernetes']['apps'][app]['deployment_name']) k8s_delete_resource(ctx, deployment, apply)