MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / make_env_kubectl

Function make_env_kubectl

misc/python/materialize/cli/orchestratord.py:417–427  ·  view source on GitHub ↗
(args: argparse.Namespace, namespace: str | None = None)

Source from the content-addressed store, hash-verified

415
416
417def make_env_kubectl(args: argparse.Namespace, namespace: str | None = None):
418 def env_kubectl(*cmd_args: str, **subprocess_args):
419 return kubectl(
420 "-n",
421 namespace or args.namespace,
422 *cmd_args,
423 cluster=args.kind_cluster_name,
424 **subprocess_args,
425 )
426
427 return env_kubectl
428
429
430def acquire(image: str, dev: bool, cluster: str):

Callers 4

resetFunction · 0.85
environmentFunction · 0.85
portforwardFunction · 0.85
get_resource_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected