Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Imagestream fixes #665

Merged
merged 2 commits into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion doozerlib/cli/images_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,14 @@ def check_if_upstream_image_exists(upstream_image):
if not public_branch:
public_branch = source_repo_branch

if (public_branch == 'master' or public_branch == 'main') and not prs_in_master:
# If a component is not using 'release-4.x' / 'openshift-4.x' branching mechanics,
# ART will be falling back to use master/main branch for the content of ALL
# releases. In this case, only open a reconciliation PR for when the current
# group matches what release CI is tracking in master.
logger.info(f'Skipping PR for {runtime.group} : {dgk} / {public_repo_url} since associated public branch is {public_branch} but CI is tracking {master_major}.{master_minor} in that branch.')
continue

# There are two standard upstream branching styles:
# release-4.x : CI fast-forwards from default branch (master or main) when appropriate
# openshift-4.x : Upstream team manages completely.
Expand Down Expand Up @@ -1007,7 +1015,7 @@ def check_if_upstream_image_exists(upstream_image):
"""

pr_body += """
If you have any questions about this pull request, please reach out to `@art-team` in the `#aos-art` coreos slack channel.
If you have any questions about this pull request, please reach out to `@release-artists` in the `#aos-art` coreos slack channel.
"""

parent_pr_url = None
Expand Down