From 1567db7ec51a4bc35f263073919f6438ad308fd9 Mon Sep 17 00:00:00 2001 From: liquidiert Date: Thu, 5 Dec 2024 13:25:00 +0100 Subject: [PATCH] refactor(#703): remove mtu from client add --- client/gefyra/api/clients.py | 2 -- client/gefyra/cli/clients.py | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/gefyra/api/clients.py b/client/gefyra/api/clients.py index 7ba5e9ac..4ec00e2d 100644 --- a/client/gefyra/api/clients.py +++ b/client/gefyra/api/clients.py @@ -20,7 +20,6 @@ def add_clients( client_id: str, quantity: int = 1, registry: Optional[str] = None, - mtu: Optional[int] = None, kubeconfig: Optional[Path] = None, kubecontext: Optional[str] = None, ) -> Iterable[GefyraClient]: @@ -32,7 +31,6 @@ def add_clients( kube_context=kubecontext, ignore_connection=True, registry=registry, - wireguard_mtu=mtu, ) if quantity > 1 and client_id: raise RuntimeError("Cannot specify both quantity > 1 and client_id") diff --git a/client/gefyra/cli/clients.py b/client/gefyra/cli/clients.py index eb44a927..76b95aad 100644 --- a/client/gefyra/cli/clients.py +++ b/client/gefyra/cli/clients.py @@ -27,17 +27,15 @@ def clients(ctx): default=1, ) @click.option("--registry", help="The registry URL for the images", type=str) -@click.option("--mtu", help="The MTU for the Wireguard interface", type=int) @click.pass_context @standard_error_handler -def create_clients(ctx, client_id, quantity, registry, mtu): +def create_clients(ctx, client_id, quantity, registry): from gefyra import api api.add_clients( client_id, quantity, registry=registry, - mtu=mtu, kubeconfig=ctx.obj["kubeconfig"], kubecontext=ctx.obj["context"], )