Skip to content

Commit 0a14557

Browse files
committed
[2.19] fix: upgrade test post CVE fixes
1 parent 372345e commit 0a14557

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
@@ -119,6 +119,11 @@ def create_namespace_with_name(self, namespace_name):
119119
)
120120
self.api_instance.create_namespace(namespace_body)
121121
except Exception as e:
122+
# Check if it's an AlreadyExists error (409 Conflict) and ignore it
123+
if hasattr(e, 'status') and e.status == 409:
124+
# Namespace already exists, which is fine - just continue
125+
print(f"Warning: Namespace '{namespace_name}' already exists, continuing...")
126+
return
122127
return _kube_api_error_handling(e)
123128

124129

0 commit comments

Comments
 (0)