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 eb5ce8d commit 0ddbd99Copy full SHA for 0ddbd99
tests/e2e/support.py
@@ -100,6 +100,11 @@ def create_namespace_with_name(self, namespace_name):
100
)
101
self.api_instance.create_namespace(namespace_body)
102
except Exception as e:
103
+ # Check if it's an AlreadyExists error (409 Conflict) and ignore it
104
+ if hasattr(e, 'status') and e.status == 409:
105
+ # Namespace already exists, which is fine - just continue
106
+ print(f"Warning: Namespace '{namespace_name}' already exists, continuing...")
107
+ return
108
return _kube_api_error_handling(e)
109
110
0 commit comments