Skip to content

Commit

Permalink
remove hardcoded warnet- prefix from namespaces deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
josibake committed Sep 13, 2024
1 parent 5c57c69 commit ad3e543
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/warnet/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,6 @@ def deploy_namespaces(directory: Path):
with namespaces_file_path.open() as f:
namespaces_file = yaml.safe_load(f)

names = [n.get("name") for n in namespaces_file["namespaces"]]
for n in names:
if not n.startswith("warnet-"):
click.echo(
f"Failed to create namespace: {n}. Namespaces must start with a 'warnet-' prefix."
)
return

for namespace in namespaces_file["namespaces"]:
click.echo(f"Deploying namespace: {namespace.get('name')}")
try:
Expand Down

0 comments on commit ad3e543

Please sign in to comment.