def _handler_deploy_destroy(args, command): context = config.load_context_section(args.get('section')) resources = templating.Renderer( settings.TEMPLATES_DIR, args.get('tags'), args.get('skip_tags')).generate_by_context(context) if args.get('dry_run'): return _handler_provision(command, resources, config.PriorityEvaluator(args, context, os.environ), args.get('use_kubeconfig'), args.get('sync_mode'), args.get('show_logs'))
def _handler_apply_delete(args, command): _handler_provision(command, [os.path.join(settings.TEMP_DIR, args.get('resource'))], config.PriorityEvaluator(args, {}, os.environ), args.get('use_kubeconfig'), args.get('sync_mode'), args.get('show_logs'))