Skip to content

Commit 3a91d20

Browse files
authored
chore: remove vertex-agent-garden labels from deploy.py (#942)
* chore: remove vertex-agent-garden labels from deploy.py Remove the agent garden label block (vertex-agent-sample-id, vertex-agent-sample-publisher, deployed-with) from the Agent Engine deploy script. * chore: keep deployed-with agent-garden label Only remove the vertex-agent-sample-id and vertex-agent-sample-publisher labels, preserving the deployed-with=agent-garden label.
1 parent 847e2f3 commit 3a91d20

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • agent_starter_pack/deployment_targets/agent_engine/python/{{cookiecutter.agent_directory}}/app_utils

agent_starter_pack/deployment_targets/agent_engine/python/{{cookiecutter.agent_directory}}/app_utils/deploy.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,8 @@ def deploy_agent_engine_app(
385385
)
386386
vertexai.init(project=project, location=location)
387387

388-
# Add agent garden labels if configured
389388
{%- if cookiecutter.agent_garden %}
390-
{%- if cookiecutter.agent_sample_id and cookiecutter.agent_sample_publisher %}
391-
labels_dict["vertex-agent-sample-id"] = "{{cookiecutter.agent_sample_id}}"
392-
labels_dict["vertex-agent-sample-publisher"] = "{{cookiecutter.agent_sample_publisher}}"
393389
labels_dict["deployed-with"] = "agent-garden"
394-
{%- endif %}
395390
{%- endif %}
396391

397392
# Dynamically import the agent instance to generate class_methods

0 commit comments

Comments
 (0)