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

Function root_psql

misc/python/materialize/cli/orchestratord.py:224–240  ·  view source on GitHub ↗
(cmd: str)

Source from the content-addressed store, hash-verified

222 environment_id = args.environment_id
223
224 def root_psql(cmd: str):
225 env_kubectl(
226 "run",
227 "psql-setup",
228 "--labels=app=environmentd",
229 "--image=postgres",
230 "--command=true",
231 "--restart=Never",
232 "--attach=true",
233 "--rm=true",
234 "--",
235 "psql",
236 args.postgres_url,
237 "-c",
238 cmd,
239 )
240 env_kubectl("wait", "--for=delete", "pod/psql-setup")
241
242 pg_user = f"materialize_{environment_id}"
243 pg_pass = "password"

Callers 1

environmentFunction · 0.85

Calls 1

env_kubectlFunction · 0.85

Tested by

no test coverage detected