Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote QR Image in Terraform Repo SaaS File #4711

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions reconcile/utils/mr/promote_qontract.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,15 @@ def process(self, gitlab_cli: GitLabApi) -> None:
replace_text=self.commit_sha,
)

# data/services/app-interface/terraform-repo/cicd/ci-int/saas-terraform-repo.yaml
self._process_by(
"json_path",
gitlab_cli=gitlab_cli,
path="data/services/app-interface/terraform-repo/cicd/ci-int/saas-terraform-repo.yaml",
search_text="$.resourceTemplates[?(@.url == 'https://gitlab.cee.redhat.com/app-sre/terraform-repo-tekton')].targets[?(@.name == 'tf-repo-prod')].parameters.QR_IMAGE_TAG",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are 2 matches for url https://gitlab.cee.redhat.com/app-sre/terraform-repo-tekton, would it be cleaner to use name field terraform-repo?

replace_text=self.version,
)

# data/pipelines/tekton-provider-global-defaults.yaml
self._process_by(
"json_path",
Expand Down