langgraph-cli 0.4.34__tar.gz → 0.4.35__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/PKG-INFO +1 -1
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/yarn.lock +5 -5
- langgraph_cli-0.4.35/langgraph_cli/__init__.py +1 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/deploy.py +118 -41
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/host_backend.py +3 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/cli/test_deploy_command.py +144 -2
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_deploy_helpers.py +125 -14
- langgraph_cli-0.4.34/langgraph_cli/__init__.py +0 -1
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/.gitignore +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/LICENSE +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/Makefile +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/README.md +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/.env.example +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/.gitignore +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/Makefile +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs/deps/additional_deps/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs_fail/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs_fail/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graph_prerelease_reqs_fail/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs/storm.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/graphs_submod/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/graphs_submod/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/graphs_submod/subprompt.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/hello.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/prompt.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_a/requirements.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/graphs_submod/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/graphs_submod/subprompt.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/hello.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/prompt.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/requirements.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/utils/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/graphs_reqs_b/utils/greeter.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/my_app.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/pipconf.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/examples/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/generate_schema.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/.dockerignore +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/.editorconfig +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/.env.example +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/.eslintrc.cjs +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/.gitignore +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/LICENSE +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/README.md +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/jest.config.js +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/package.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/src/agent/graph.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/src/agent/state.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/static/studio.png +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/tests/agent.test.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/tests/graph.int.test.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-examples/tsconfig.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/.eslintrc.cjs +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/apps/agent/package.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/apps/agent/src/graph.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/apps/agent/src/state.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/apps/agent/tsconfig.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/libs/shared/package.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/libs/shared/src/index.ts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/libs/shared/tsconfig.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/package.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/tsconfig.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/turbo.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/js-monorepo-example/yarn.lock +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/__main__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/_ignore.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/analytics.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/archive.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/cli.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/config.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/constants.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/dependency_tracking.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/docker.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/exec.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/image_reference.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/progress.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/py.typed +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/schemas.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/templates.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/util.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/uv_lock.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/langgraph_cli/version.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/apps/agent/.env.example +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/apps/agent/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/apps/agent/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/apps/agent/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/apps/agent/src/agent/state.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/libs/common/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/libs/common/helpers.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/libs/shared/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/libs/shared/src/shared/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/libs/shared/src/shared/utils.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/python-monorepo-example/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/schemas/schema.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/schemas/schema.v0.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/schemas/version.schema.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/integration_tests/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/integration_tests/test_cli.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/cli/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/cli/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/cli/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/cli/test_cli.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/cli/test_templates.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/conftest.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/graphs/agent.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/helpers.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/multiplatform/js.mts +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/multiplatform/python.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/pipconfig.txt +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_archive.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_config.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_config.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_dependency_tracking.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_deploy_agents.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_docker.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_host_backend.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_image_reference.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_logs_helpers.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/tests/unit_tests/test_util.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/apps/agent/.env.example +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/apps/agent/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/apps/agent/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/apps/agent/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/apps/agent/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/libs/shared/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/libs/shared/src/shared/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/libs/shared/src/shared/utils.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/monorepo/uv.lock +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/simple/.env.example +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/simple/langgraph.json +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/simple/pyproject.toml +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/simple/src/agent/__init__.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/simple/src/agent/graph.py +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv-examples/simple/uv.lock +0 -0
- {langgraph_cli-0.4.34 → langgraph_cli-0.4.35}/uv.lock +0 -0
|
@@ -2829,11 +2829,11 @@ graceful-fs@^4.2.11:
|
|
|
2829
2829
|
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
|
|
2830
2830
|
|
|
2831
2831
|
handlebars@^4.7.9:
|
|
2832
|
-
version "4.7.
|
|
2833
|
-
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.
|
|
2834
|
-
integrity sha512-
|
|
2832
|
+
version "4.7.10"
|
|
2833
|
+
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.10.tgz#12419ea1b41391b3ffcf003f2164dcbce090c417"
|
|
2834
|
+
integrity sha512-P5VJMVM7qgBn6vjXMw8WG9uVI+ncf2pi72j4de4yz5ZULLj2RGqLYaKOYGsgyrViQ0tePOVlN1tDCCXXtFqXKg==
|
|
2835
2835
|
dependencies:
|
|
2836
|
-
minimist "^1.2.
|
|
2836
|
+
minimist "^1.2.8"
|
|
2837
2837
|
neo-async "^2.6.2"
|
|
2838
2838
|
source-map "^0.6.1"
|
|
2839
2839
|
wordwrap "^1.0.0"
|
|
@@ -3920,7 +3920,7 @@ minimatch@^9.0.4:
|
|
|
3920
3920
|
dependencies:
|
|
3921
3921
|
brace-expansion "^2.0.2"
|
|
3922
3922
|
|
|
3923
|
-
minimist@^1.2.0, minimist@^1.2.
|
|
3923
|
+
minimist@^1.2.0, minimist@^1.2.6, minimist@^1.2.8:
|
|
3924
3924
|
version "1.2.8"
|
|
3925
3925
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
|
|
3926
3926
|
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.4.35"
|
|
@@ -231,15 +231,6 @@ class RequestedPlacement:
|
|
|
231
231
|
def requested(self) -> bool:
|
|
232
232
|
return self.listener_id is not None or self.k8s_namespace is not None
|
|
233
233
|
|
|
234
|
-
def ensure_not_requested(self, deployment_id: str) -> None:
|
|
235
|
-
if self.requested:
|
|
236
|
-
raise click.UsageError(
|
|
237
|
-
"Listener and namespace are fixed when a deployment is created. "
|
|
238
|
-
f"Deployment {deployment_id} already exists, so drop --listener-id "
|
|
239
|
-
"and --k8s-namespace, or create a new deployment with a different "
|
|
240
|
-
"--name."
|
|
241
|
-
)
|
|
242
|
-
|
|
243
234
|
def on(self, listener: Listener) -> Placement:
|
|
244
235
|
return OnListener(listener.id, self._namespace(listener))
|
|
245
236
|
|
|
@@ -1055,15 +1046,28 @@ def _print_deployment_result(
|
|
|
1055
1046
|
# ---------------------------------------------------------------------------
|
|
1056
1047
|
|
|
1057
1048
|
|
|
1049
|
+
def _strip_url_scheme(url: str) -> str:
|
|
1050
|
+
"""Return a registry reference without a trailing slash or URL scheme."""
|
|
1051
|
+
reference = url.rstrip("/")
|
|
1052
|
+
if "://" in reference:
|
|
1053
|
+
reference = reference.split("//", 1)[1]
|
|
1054
|
+
return reference
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
# Artifact Registry's username for access tokens. Control planes whose registry
|
|
1058
|
+
# needs another one return it as `username`.
|
|
1059
|
+
_DEFAULT_REGISTRY_USERNAME = "oauth2accesstoken"
|
|
1060
|
+
|
|
1061
|
+
|
|
1058
1062
|
@contextmanager
|
|
1059
|
-
def _docker_config_for_token(registry_host: str, token: str):
|
|
1063
|
+
def _docker_config_for_token(registry_host: str, token: str, username: str):
|
|
1060
1064
|
"""Create a temporary Docker config with only the push token.
|
|
1061
1065
|
|
|
1062
1066
|
Yields the path to a temporary config directory that can be passed
|
|
1063
1067
|
to `docker --config <path>` so that system credential helpers
|
|
1064
1068
|
(e.g. gcloud) don't interfere with the push token.
|
|
1065
1069
|
"""
|
|
1066
|
-
auth_b64 = base64.b64encode(f"
|
|
1070
|
+
auth_b64 = base64.b64encode(f"{username}:{token}".encode()).decode()
|
|
1067
1071
|
config_data = {"auths": {registry_host: {"auth": auth_b64}}}
|
|
1068
1072
|
with tempfile.TemporaryDirectory() as tmpdir:
|
|
1069
1073
|
with open(os.path.join(tmpdir, "config.json"), "w") as f:
|
|
@@ -1201,7 +1205,7 @@ class DockerBuildCommand:
|
|
|
1201
1205
|
return cls(("docker", "build"), ())
|
|
1202
1206
|
flags: tuple[str, ...] = ("--platform", _DEPLOYMENT_PLATFORM, "--load")
|
|
1203
1207
|
if not verbose:
|
|
1204
|
-
flags += ("--progress=
|
|
1208
|
+
flags += ("--progress=plain",)
|
|
1205
1209
|
return cls(("docker", "buildx", "build"), flags)
|
|
1206
1210
|
|
|
1207
1211
|
|
|
@@ -1317,21 +1321,22 @@ def _run_local_build(
|
|
|
1317
1321
|
raise click.ClickException(
|
|
1318
1322
|
"Push token response missing token or registry_url"
|
|
1319
1323
|
)
|
|
1324
|
+
username = push_data.get("username") or _DEFAULT_REGISTRY_USERNAME
|
|
1320
1325
|
step += 1
|
|
1321
1326
|
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1327
|
+
if push_data.get("repository_url"):
|
|
1328
|
+
# The control plane chose the exact repository (an ECR repository
|
|
1329
|
+
# is a single image name, so nothing may be appended to it).
|
|
1330
|
+
repository = _strip_url_scheme(push_data["repository_url"])
|
|
1331
|
+
else:
|
|
1332
|
+
repo_seed = image_name or name or spec.config.parent.name
|
|
1333
|
+
repository = (
|
|
1334
|
+
f"{_strip_url_scheme(registry_url)}/{normalize_name(repo_seed)}"
|
|
1330
1335
|
)
|
|
1331
|
-
)
|
|
1332
|
-
registry_host =
|
|
1336
|
+
remote_image = str(ImageReference(repository, tag))
|
|
1337
|
+
registry_host = repository.split("/")[0]
|
|
1333
1338
|
|
|
1334
|
-
with _docker_config_for_token(registry_host, deployment_token) as cfg:
|
|
1339
|
+
with _docker_config_for_token(registry_host, deployment_token, username) as cfg:
|
|
1335
1340
|
_log_deploy_step(step, f"Logging into {registry_host}")
|
|
1336
1341
|
token_input = (
|
|
1337
1342
|
deployment_token
|
|
@@ -1343,7 +1348,7 @@ def _run_local_build(
|
|
|
1343
1348
|
*_docker_argv(cfg),
|
|
1344
1349
|
"login",
|
|
1345
1350
|
"-u",
|
|
1346
|
-
|
|
1351
|
+
username,
|
|
1347
1352
|
"--password-stdin",
|
|
1348
1353
|
registry_host,
|
|
1349
1354
|
input=token_input,
|
|
@@ -1647,10 +1652,72 @@ class PublishedImage:
|
|
|
1647
1652
|
ImageSource = BuildAndPush | PublishedImage
|
|
1648
1653
|
|
|
1649
1654
|
|
|
1655
|
+
def _resource_spec(image_pull_secrets: tuple[str, ...]) -> Mapping[str, object]:
|
|
1656
|
+
if not image_pull_secrets:
|
|
1657
|
+
return _OPERATOR_DEFAULT_RESOURCE_SPEC
|
|
1658
|
+
return {
|
|
1659
|
+
"image_pull_secrets": [{"name": name} for name in image_pull_secrets],
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
# Mirrors the control plane's own LocalObjectReference.name validation (a
|
|
1664
|
+
# Kubernetes DNS subdomain), so a bad secret name is rejected here instead of
|
|
1665
|
+
# after a build and push.
|
|
1666
|
+
_K8S_SECRET_NAME_RE = re.compile(
|
|
1667
|
+
r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
|
1668
|
+
)
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
@dataclass(frozen=True, slots=True)
|
|
1672
|
+
class CreateOnlySettings:
|
|
1673
|
+
"""Options for an external-image deployment that only apply when
|
|
1674
|
+
creating one, never when updating an existing deployment."""
|
|
1675
|
+
|
|
1676
|
+
placement: RequestedPlacement
|
|
1677
|
+
image_pull_secrets: tuple[str, ...] = ()
|
|
1678
|
+
|
|
1679
|
+
def __post_init__(self) -> None:
|
|
1680
|
+
for name in self.image_pull_secrets:
|
|
1681
|
+
if len(name) > 253 or not _K8S_SECRET_NAME_RE.match(name):
|
|
1682
|
+
raise click.UsageError(
|
|
1683
|
+
f"--image-pull-secret {name!r} is not a valid Kubernetes "
|
|
1684
|
+
"secret name (lowercase alphanumeric characters, '-', or "
|
|
1685
|
+
"'.' only, max 253 characters)."
|
|
1686
|
+
)
|
|
1687
|
+
|
|
1688
|
+
@property
|
|
1689
|
+
def requested(self) -> bool:
|
|
1690
|
+
return self.placement.requested or bool(self.image_pull_secrets)
|
|
1691
|
+
|
|
1692
|
+
def ensure_creatable(self, push_to: str | None, image_uri: str | None) -> None:
|
|
1693
|
+
if push_to is None and image_uri is None and self.requested:
|
|
1694
|
+
raise click.UsageError(
|
|
1695
|
+
"--listener-id, --k8s-namespace, and --image-pull-secret only "
|
|
1696
|
+
"apply when creating a deployment with --push-to or --image-uri."
|
|
1697
|
+
)
|
|
1698
|
+
|
|
1699
|
+
def ensure_not_existing(self, deployment_id: str) -> None:
|
|
1700
|
+
if self.placement.requested:
|
|
1701
|
+
raise click.UsageError(
|
|
1702
|
+
"Listener and namespace are fixed when a deployment is "
|
|
1703
|
+
f"created. Deployment {deployment_id} already exists, so "
|
|
1704
|
+
"drop --listener-id and --k8s-namespace, or create a new "
|
|
1705
|
+
"deployment with a different --name."
|
|
1706
|
+
)
|
|
1707
|
+
if self.image_pull_secrets:
|
|
1708
|
+
raise click.UsageError(
|
|
1709
|
+
"langgraph deploy does not update image pull secrets on an "
|
|
1710
|
+
f"existing deployment. Deployment {deployment_id} already "
|
|
1711
|
+
"exists, so drop --image-pull-secret and update resource_spec "
|
|
1712
|
+
"through the API or the LangSmith UI instead, or create a "
|
|
1713
|
+
"new deployment with a different --name."
|
|
1714
|
+
)
|
|
1715
|
+
|
|
1716
|
+
|
|
1650
1717
|
@dataclass(frozen=True, slots=True)
|
|
1651
1718
|
class CustomerRegistrySource:
|
|
1652
1719
|
image: ImageSource
|
|
1653
|
-
|
|
1720
|
+
create_only: CreateOnlySettings
|
|
1654
1721
|
|
|
1655
1722
|
def run(self, ctx: DeployContext) -> DeployOutcome:
|
|
1656
1723
|
if isinstance(ctx.selector, ById):
|
|
@@ -1672,7 +1739,7 @@ class CustomerRegistrySource:
|
|
|
1672
1739
|
self, ctx: DeployContext, existing: ExistingDeployment, step: int
|
|
1673
1740
|
) -> DeployOutcome:
|
|
1674
1741
|
_ensure_customer_registry_source(existing)
|
|
1675
|
-
self.
|
|
1742
|
+
self.create_only.ensure_not_existing(existing.id)
|
|
1676
1743
|
image_uri, step = self._publish(ctx, step)
|
|
1677
1744
|
_log_deploy_step(step, f"Updating deployment {existing.id}")
|
|
1678
1745
|
updated = ctx.client.update_deployment(
|
|
@@ -1687,7 +1754,7 @@ class CustomerRegistrySource:
|
|
|
1687
1754
|
)
|
|
1688
1755
|
|
|
1689
1756
|
def _resolve_placement(self, ctx: DeployContext) -> Placement:
|
|
1690
|
-
requested = self.
|
|
1757
|
+
requested = self.create_only.placement
|
|
1691
1758
|
if requested.listener_id is not None:
|
|
1692
1759
|
return requested.on(_requested_listener(ctx.client, requested.listener_id))
|
|
1693
1760
|
if not (ctx.endpoints.is_cloud or requested.requested):
|
|
@@ -1716,7 +1783,9 @@ class CustomerRegistrySource:
|
|
|
1716
1783
|
else None,
|
|
1717
1784
|
source=_CUSTOMER_REGISTRY_SOURCE,
|
|
1718
1785
|
source_config={
|
|
1719
|
-
"resource_spec":
|
|
1786
|
+
"resource_spec": _resource_spec(
|
|
1787
|
+
self.create_only.image_pull_secrets
|
|
1788
|
+
),
|
|
1720
1789
|
**placement.source_config(),
|
|
1721
1790
|
},
|
|
1722
1791
|
source_revision_config={"image_uri": image_uri},
|
|
@@ -1810,19 +1879,13 @@ def _select_source(
|
|
|
1810
1879
|
tag: str | None,
|
|
1811
1880
|
remote_build_flag: bool | None,
|
|
1812
1881
|
placement: RequestedPlacement,
|
|
1882
|
+
image_pull_secrets: tuple[str, ...],
|
|
1813
1883
|
selector: DeploymentSelector,
|
|
1814
1884
|
) -> DeploymentSource:
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
)
|
|
1820
|
-
if placement.requested and isinstance(selector, ById):
|
|
1821
|
-
raise click.UsageError(
|
|
1822
|
-
"Listener and namespace are fixed when a deployment is created, so "
|
|
1823
|
-
"they cannot be set for an existing --deployment-id. Drop them, or "
|
|
1824
|
-
"create a new deployment with --name."
|
|
1825
|
-
)
|
|
1885
|
+
create_only = CreateOnlySettings(placement, image_pull_secrets)
|
|
1886
|
+
create_only.ensure_creatable(push_to, image_uri)
|
|
1887
|
+
if create_only.requested and isinstance(selector, ById):
|
|
1888
|
+
create_only.ensure_not_existing(selector.deployment_id)
|
|
1826
1889
|
if image_uri is not None:
|
|
1827
1890
|
if push_to is not None:
|
|
1828
1891
|
raise click.UsageError("--image-uri cannot be combined with --push-to.")
|
|
@@ -1834,7 +1897,7 @@ def _select_source(
|
|
|
1834
1897
|
raise click.UsageError("--image-uri cannot be combined with --remote.")
|
|
1835
1898
|
return CustomerRegistrySource(
|
|
1836
1899
|
image=PublishedImage(_validate_image_uri(image_uri)),
|
|
1837
|
-
|
|
1900
|
+
create_only=create_only,
|
|
1838
1901
|
)
|
|
1839
1902
|
if push_to is not None:
|
|
1840
1903
|
if remote_build_flag is True:
|
|
@@ -1844,7 +1907,7 @@ def _select_source(
|
|
|
1844
1907
|
_require_local_docker()
|
|
1845
1908
|
return CustomerRegistrySource(
|
|
1846
1909
|
image=BuildAndPush(reference=reference, prebuilt_image=image),
|
|
1847
|
-
|
|
1910
|
+
create_only=create_only,
|
|
1848
1911
|
)
|
|
1849
1912
|
if image and remote_build_flag is True:
|
|
1850
1913
|
raise click.UsageError("--image cannot be combined with --remote builds.")
|
|
@@ -2188,6 +2251,18 @@ def _deploy_base_options(
|
|
|
2188
2251
|
"creating a deployment with --push-to or --image-uri."
|
|
2189
2252
|
),
|
|
2190
2253
|
),
|
|
2254
|
+
click.option(
|
|
2255
|
+
"--image-pull-secret",
|
|
2256
|
+
"image_pull_secrets",
|
|
2257
|
+
multiple=True,
|
|
2258
|
+
help=(
|
|
2259
|
+
"Name of a Kubernetes secret (type kubernetes.io/"
|
|
2260
|
+
"dockerconfigjson) in the deployment's namespace to use for "
|
|
2261
|
+
"pulling the image from a private registry. Repeat to give "
|
|
2262
|
+
"more than one. Only used when creating a deployment with "
|
|
2263
|
+
"--push-to or --image-uri."
|
|
2264
|
+
),
|
|
2265
|
+
),
|
|
2191
2266
|
click.option(
|
|
2192
2267
|
"--config",
|
|
2193
2268
|
"-c",
|
|
@@ -2301,6 +2376,7 @@ def _deploy_cmd(
|
|
|
2301
2376
|
image_uri: str | None,
|
|
2302
2377
|
listener_id: str | None,
|
|
2303
2378
|
k8s_namespace: str | None,
|
|
2379
|
+
image_pull_secrets: tuple[str, ...],
|
|
2304
2380
|
tag: str | None,
|
|
2305
2381
|
base_image: str | None,
|
|
2306
2382
|
install_command: str | None,
|
|
@@ -2377,6 +2453,7 @@ def _deploy_cmd(
|
|
|
2377
2453
|
tag=tag,
|
|
2378
2454
|
remote_build_flag=remote_build_flag,
|
|
2379
2455
|
placement=RequestedPlacement(listener_id, k8s_namespace),
|
|
2456
|
+
image_pull_secrets=image_pull_secrets,
|
|
2380
2457
|
selector=selector,
|
|
2381
2458
|
)
|
|
2382
2459
|
|
|
@@ -249,9 +249,12 @@ class HostBackendClient:
|
|
|
249
249
|
return self._request("DELETE", f"/v2/deployments/{deployment_id}")
|
|
250
250
|
|
|
251
251
|
def request_push_token(self, deployment_id: str) -> dict[str, Any]:
|
|
252
|
+
# Tells the control plane this client logs in with the returned
|
|
253
|
+
# `username` and pushes to `repository_url`. LangSmith AWS requires it.
|
|
252
254
|
return self._request(
|
|
253
255
|
"POST",
|
|
254
256
|
f"/v2/deployments/{deployment_id}/push-token",
|
|
257
|
+
{"supports_registry_username": True},
|
|
255
258
|
)
|
|
256
259
|
|
|
257
260
|
def request_upload_url(self, deployment_id: str) -> dict[str, Any]:
|
|
@@ -93,6 +93,7 @@ class ControlPlaneDouble:
|
|
|
93
93
|
timeline: list[str]
|
|
94
94
|
existing_deployments: list[dict] = field(default_factory=list)
|
|
95
95
|
push_token_status: int = 200
|
|
96
|
+
push_token_extra: dict = field(default_factory=dict)
|
|
96
97
|
create_error: str | None = None
|
|
97
98
|
listeners: list[dict] = field(default_factory=list)
|
|
98
99
|
listeners_by_id: dict[str, dict] = field(default_factory=dict)
|
|
@@ -147,7 +148,12 @@ class ControlPlaneDouble:
|
|
|
147
148
|
if self.push_token_status != 200:
|
|
148
149
|
return httpx.Response(self.push_token_status, text=NOT_A_CLI_DEPLOYMENT)
|
|
149
150
|
return httpx.Response(
|
|
150
|
-
200,
|
|
151
|
+
200,
|
|
152
|
+
json={
|
|
153
|
+
"token": PUSH_TOKEN,
|
|
154
|
+
"registry_url": REGISTRY_URL,
|
|
155
|
+
**self.push_token_extra,
|
|
156
|
+
},
|
|
151
157
|
)
|
|
152
158
|
if path.endswith("/upload-url"):
|
|
153
159
|
return httpx.Response(
|
|
@@ -363,7 +369,7 @@ def test_first_local_deploy_creates_an_internal_docker_deployment(
|
|
|
363
369
|
pytest.param(
|
|
364
370
|
"arm64",
|
|
365
371
|
("docker", "buildx", "build"),
|
|
366
|
-
("--platform", "linux/amd64", "--load", "--progress=
|
|
372
|
+
("--platform", "linux/amd64", "--load", "--progress=plain"),
|
|
367
373
|
id="apple_silicon_cross_builds_for_linux_amd64",
|
|
368
374
|
),
|
|
369
375
|
pytest.param(
|
|
@@ -410,6 +416,48 @@ def test_local_deploy_logs_in_with_the_control_plane_push_token(
|
|
|
410
416
|
assert login.kwargs["input"] == f"{PUSH_TOKEN}\n"
|
|
411
417
|
|
|
412
418
|
|
|
419
|
+
def test_local_deploy_tells_the_control_plane_it_honors_registry_usernames(
|
|
420
|
+
deploy_project: DeployProject,
|
|
421
|
+
) -> None:
|
|
422
|
+
deploy_project.run("--no-remote")
|
|
423
|
+
|
|
424
|
+
assert deploy_project.control_plane.bodies[_push_token(CREATED_ID)] == {
|
|
425
|
+
"supports_registry_username": True
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
ECR_REPOSITORY = "123456789012.dkr.ecr.us-east-2.amazonaws.com/lsd/agent-1"
|
|
430
|
+
ECR_PUSH_TOKEN_FIELDS = {"username": "AWS", "repository_url": ECR_REPOSITORY}
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
def test_local_deploy_logs_in_with_the_username_the_control_plane_returns(
|
|
434
|
+
deploy_project: DeployProject,
|
|
435
|
+
) -> None:
|
|
436
|
+
deploy_project.control_plane.push_token_extra = ECR_PUSH_TOKEN_FIELDS
|
|
437
|
+
|
|
438
|
+
deploy_project.run("--no-remote")
|
|
439
|
+
|
|
440
|
+
login = deploy_project.docker.command("login")
|
|
441
|
+
assert login.args[3:] == (
|
|
442
|
+
"login",
|
|
443
|
+
"-u",
|
|
444
|
+
"AWS",
|
|
445
|
+
"--password-stdin",
|
|
446
|
+
"123456789012.dkr.ecr.us-east-2.amazonaws.com",
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
def test_local_deploy_pushes_to_exactly_the_returned_repository(
|
|
451
|
+
deploy_project: DeployProject,
|
|
452
|
+
) -> None:
|
|
453
|
+
deploy_project.control_plane.push_token_extra = ECR_PUSH_TOKEN_FIELDS
|
|
454
|
+
|
|
455
|
+
deploy_project.run("--no-remote")
|
|
456
|
+
|
|
457
|
+
tag = deploy_project.docker.command("tag")
|
|
458
|
+
assert tag.args[-1] == f"{ECR_REPOSITORY}:latest"
|
|
459
|
+
|
|
460
|
+
|
|
413
461
|
def test_local_deploy_tags_the_build_into_the_token_registry(
|
|
414
462
|
deploy_project: DeployProject,
|
|
415
463
|
) -> None:
|
|
@@ -918,6 +966,100 @@ def test_self_hosted_control_plane_places_when_asked(
|
|
|
918
966
|
}
|
|
919
967
|
|
|
920
968
|
|
|
969
|
+
def test_image_pull_secret_is_included_in_resource_spec_on_create(
|
|
970
|
+
deploy_project: DeployProject,
|
|
971
|
+
) -> None:
|
|
972
|
+
result = deploy_project.run(
|
|
973
|
+
"--push-to",
|
|
974
|
+
PUSH_REPOSITORY,
|
|
975
|
+
"--image-pull-secret",
|
|
976
|
+
"regcred",
|
|
977
|
+
"--image-pull-secret",
|
|
978
|
+
"other-secret",
|
|
979
|
+
)
|
|
980
|
+
|
|
981
|
+
assert result.exit_code == 0, result.output
|
|
982
|
+
assert deploy_project.control_plane.bodies[CREATE_DEPLOYMENT]["source_config"] == {
|
|
983
|
+
"resource_spec": {
|
|
984
|
+
"image_pull_secrets": [
|
|
985
|
+
{"name": "regcred"},
|
|
986
|
+
{"name": "other-secret"},
|
|
987
|
+
],
|
|
988
|
+
},
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
def test_image_pull_secret_works_with_image_uri_too(
|
|
993
|
+
deploy_project: DeployProject,
|
|
994
|
+
) -> None:
|
|
995
|
+
result = deploy_project.run(
|
|
996
|
+
"--image-uri", EXTERNAL_DIGEST, "--image-pull-secret", "regcred"
|
|
997
|
+
)
|
|
998
|
+
|
|
999
|
+
assert result.exit_code == 0, result.output
|
|
1000
|
+
assert deploy_project.control_plane.bodies[CREATE_DEPLOYMENT]["source_config"] == {
|
|
1001
|
+
"resource_spec": {"image_pull_secrets": [{"name": "regcred"}]},
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
def test_image_pull_secret_without_push_to_or_image_uri_is_refused(
|
|
1006
|
+
deploy_project: DeployProject,
|
|
1007
|
+
) -> None:
|
|
1008
|
+
result = deploy_project.run("--image-pull-secret", "regcred")
|
|
1009
|
+
|
|
1010
|
+
assert result.exit_code != 0
|
|
1011
|
+
assert "only apply when creating a deployment with --push-to" in result.output
|
|
1012
|
+
assert deploy_project.timeline == []
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
def test_an_invalid_image_pull_secret_name_is_rejected_before_any_docker_work(
|
|
1016
|
+
deploy_project: DeployProject,
|
|
1017
|
+
) -> None:
|
|
1018
|
+
result = deploy_project.run(
|
|
1019
|
+
"--push-to", PUSH_REPOSITORY, "--image-pull-secret", "Not_Valid!"
|
|
1020
|
+
)
|
|
1021
|
+
|
|
1022
|
+
assert result.exit_code != 0
|
|
1023
|
+
assert "not a valid Kubernetes" in result.output
|
|
1024
|
+
assert deploy_project.docker.verbs() == []
|
|
1025
|
+
assert deploy_project.timeline == []
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
def test_image_pull_secret_cannot_update_an_existing_deployment(
|
|
1029
|
+
deploy_project: DeployProject,
|
|
1030
|
+
) -> None:
|
|
1031
|
+
result = deploy_project.run(
|
|
1032
|
+
"--deployment-id",
|
|
1033
|
+
"dep-1",
|
|
1034
|
+
"--push-to",
|
|
1035
|
+
PUSH_REPOSITORY,
|
|
1036
|
+
"--image-pull-secret",
|
|
1037
|
+
"regcred",
|
|
1038
|
+
)
|
|
1039
|
+
|
|
1040
|
+
assert result.exit_code != 0
|
|
1041
|
+
assert "--image-pull-secret" in result.output
|
|
1042
|
+
assert "dep-1" in result.output
|
|
1043
|
+
assert deploy_project.timeline == []
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
def test_image_pull_secret_cannot_update_a_deployment_found_by_name(
|
|
1047
|
+
deploy_project: DeployProject,
|
|
1048
|
+
) -> None:
|
|
1049
|
+
deploy_project.control_plane.existing_deployments = [
|
|
1050
|
+
{"id": "dep-ext", "name": "my-app", "source": "external_docker"}
|
|
1051
|
+
]
|
|
1052
|
+
|
|
1053
|
+
result = deploy_project.run(
|
|
1054
|
+
"--image-uri", EXTERNAL_DIGEST, "--image-pull-secret", "regcred"
|
|
1055
|
+
)
|
|
1056
|
+
|
|
1057
|
+
assert result.exit_code != 0
|
|
1058
|
+
assert "--image-pull-secret" in result.output
|
|
1059
|
+
assert deploy_project.docker.verbs() == []
|
|
1060
|
+
assert _patch("dep-ext") not in deploy_project.timeline
|
|
1061
|
+
|
|
1062
|
+
|
|
921
1063
|
def test_updating_a_deployment_never_looks_up_listeners(
|
|
922
1064
|
deploy_project: DeployProject,
|
|
923
1065
|
) -> None:
|