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 3668d60 commit fcee57aCopy full SHA for fcee57a
tests/e2e/support.py
@@ -121,6 +121,11 @@ def create_namespace_with_name(self, namespace_name):
121
)
122
self.api_instance.create_namespace(namespace_body)
123
except Exception as e:
124
+ # Check if it's an AlreadyExists error (409 Conflict) and ignore it
125
+ if hasattr(e, 'status') and e.status == 409:
126
+ # Namespace already exists, which is fine - just continue
127
+ print(f"Warning: Namespace '{namespace_name}' already exists, continuing...")
128
+ return
129
return _kube_api_error_handling(e)
130
131
0 commit comments