Skip to content

Commit eda4272

Browse files
pawelpaszkikryanbeane
authored andcommitted
[2.25] fix: upgrade test post CVE fixes
1 parent c611435 commit eda4272

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/e2e/support.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ def create_namespace_with_name(self, namespace_name):
280280
)
281281
self.api_instance.create_namespace(namespace_body)
282282
except Exception as e:
283+
# Check if it's an AlreadyExists error (409 Conflict) and ignore it
284+
if hasattr(e, 'status') and e.status == 409:
285+
# Namespace already exists, which is fine - just continue
286+
print(f"Warning: Namespace '{namespace_name}' already exists, continuing...")
287+
return
283288
return _kube_api_error_handling(e)
284289

285290

0 commit comments

Comments
 (0)