File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,11 +52,14 @@ def is_jira_open(jira_id: str, admin_client: DynamicClient) -> bool:
5252 # Check if the operator version in ClusterServiceVersion is greater than the jira fix version
5353 jira_fix_versions : list [Version ] = []
5454 for fix_version in jira_fields .fixVersions :
55- if _fix_version := re .search (r"\d.\d+.\d+" , fix_version .name ):
55+ if _fix_version := re .search (r"\d+\ .\d+(?:\ .\d+)? " , fix_version .name ):
5656 jira_fix_versions .append (Version (_fix_version .group ()))
5757
5858 if not jira_fix_versions :
59- raise ValueError (f"Jira { jira_id } : status is { jira_status } but does not have fix version(s)" )
59+ LOGGER .warning (
60+ f"Jira { jira_id } : status is { jira_status } but no valid fix version(s) found; treating as open"
61+ )
62+ return True
6063
6164 operator_version : str = ""
6265 for csv in ClusterServiceVersion .get (dyn_client = admin_client , namespace = py_config ["applications_namespace" ]):
You can’t perform that action at this time.
0 commit comments