def is_tf_blueprint(blueprint_name: str, repo: BlueprintRepo) -> bool: tf_sandbox_flag = False yaml_obj = repo.get_blueprint_yaml(blueprint_name) if "services" in yaml_obj.keys(): if len(yaml_obj["services"]): tf_sandbox_flag = True return tf_sandbox_flag
def is_k8s_blueprint(blueprint_name: str, repo: BlueprintRepo) -> bool: k8s_sandbox_flag = False yaml_obj = repo.get_blueprint_yaml(blueprint_name) for cloud in yaml_obj["clouds"]: if "/" in cloud: k8s_sandbox_flag = True return k8s_sandbox_flag