We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67df4f5 commit 323f4a5Copy full SHA for 323f4a5
tests/e2e/support.py
@@ -193,6 +193,11 @@ def create_namespace_with_name(self, namespace_name):
193
)
194
self.api_instance.create_namespace(namespace_body)
195
except Exception as e:
196
+ # Check if it's an AlreadyExists error (409 Conflict) and ignore it
197
+ if hasattr(e, 'status') and e.status == 409:
198
+ # Namespace already exists, which is fine - just continue
199
+ print(f"Warning: Namespace '{namespace_name}' already exists, continuing...")
200
+ return
201
return _kube_api_error_handling(e)
202
203
0 commit comments