Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gcp-cloud-run/src/gcp_cloud_run/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ async def deploy(
vpc_connector: Annotated[str, Doc("VPC connector")] = "",
service_account: Annotated[str, Doc("Service account email")] = "",
cpu_boost: Annotated[bool, Doc("Enable CPU boost during startup")] = False,
disable_invoker_iam_check: Annotated[bool, Doc("Disable IAM invoker check (allows all traffic without IAM authorization, useful for services behind Firebase Hosting or a load balancer)")] = False,
) -> str:
"""Deploy a Cloud Run service."""
# Validate all inputs
Expand Down Expand Up @@ -201,6 +202,8 @@ async def deploy(
cmd.extend(["--service-account", service_account])
if cpu_boost:
cmd.append("--cpu-boost")
if disable_invoker_iam_check:
cmd.append("--no-invoker-iam-check")

return await gcloud.with_exec(cmd).stdout()

Expand Down
Loading