Skip to content

Commit acc63ed

Browse files
committed
remove hardcoded warnet- prefix from namespaces deploy
1 parent 48629bf commit acc63ed

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/warnet/deploy.py

-8
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,6 @@ def deploy_namespaces(directory: Path):
235235
with namespaces_file_path.open() as f:
236236
namespaces_file = yaml.safe_load(f)
237237

238-
names = [n.get("name") for n in namespaces_file["namespaces"]]
239-
for n in names:
240-
if not n.startswith("warnet-"):
241-
click.echo(
242-
f"Failed to create namespace: {n}. Namespaces must start with a 'warnet-' prefix."
243-
)
244-
return
245-
246238
for namespace in namespaces_file["namespaces"]:
247239
click.echo(f"Deploying namespace: {namespace.get('name')}")
248240
try:

0 commit comments

Comments
 (0)