From 93453b95d17e6b70f447b034980255699dbeb39c Mon Sep 17 00:00:00 2001 From: Brandon Squizzato <35474886+bsquizz@users.noreply.github.com> Date: Wed, 2 Jun 2021 12:23:51 -0400 Subject: [PATCH] Add query for saasFilesV2 (#56) --- bonfire/qontract.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/bonfire/qontract.py b/bonfire/qontract.py index a1861a65..80801cec 100644 --- a/bonfire/qontract.py +++ b/bonfire/qontract.py @@ -55,6 +55,27 @@ } } } + saasFilesV2 { + path + name + parameters + resourceTemplates { + name + path + url + parameters + targets { + namespace { + name + cluster { + name + } + } + ref + parameters + } + } + } } } """ @@ -238,7 +259,8 @@ def get_apps_for_env(env_name): if app["parentApp"] and app["parentApp"].get("name") != "insights": ignored_apps.add(app["name"]) continue - for saas_file in app.get("saasFiles", []): + saas_files = app.get("saasFiles", []) + app.get("saasFilesV2", []) + for saas_file in saas_files: for resource_template in saas_file.get("resourceTemplates", []): for target in resource_template.get("targets", []): if target["namespace"]["name"] in env["namespaces"]: