Skip to content

[patch] adding filters to tekton definitions for mas restore command. - #2549

Open
Sharan-Robinson-IBM wants to merge 2 commits into
masterfrom
download-archive-toggles-for-facilities-app-and-db
Open

[patch] adding filters to tekton definitions for mas restore command.#2549
Sharan-Robinson-IBM wants to merge 2 commits into
masterfrom
download-archive-toggles-for-facilities-app-and-db

Conversation

@Sharan-Robinson-IBM

Copy link
Copy Markdown

Description

Add facilities-specific archive include toggles to the download-backup-archive Tekton task and wire them through the mas-restore pipeline so facilities archives can be excluded from download the same way Manage archives already can.

This change adds two new task parameters:

These are passed as environment variables (INCLUDE_FACILITIES_APP_ARCHIVE, INCLUDE_FACILITIES_DB_ARCHIVE) to the underlying Ansible role. The restore pipeline now sets them based on the restore_facilities_app and restore_facilities_db pipeline parameters, which are already declared in tekton/src/params/backup.yml.j2.

Before this change, the two env vars were never set on the task, causing the Ansible role to default them to true and always attempt to download the facilities archives — even when a facilities restore was not requested. This change gives the pipeline correct control over which archives are downloaded.

Test Results

Before:
image

After:
The faclities archives are filtered out.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants