Skip to main content

Module cloudrun

Module cloudrun 

Source
Expand description

gadk deploy cloudrun.

The flag structs keep ADK’s shape (the nested flag groups, field for field in ADK’s order) so CloudRunFlags::go_v can print the one-line flags dump ADK’s tool prints; gadk’s additions (bin, target) sit after those fields and are never printed.

gadk builds the image remotely from the staged Cargo workspace (the "Staging source" step takes the slot of ADK’s "Compiling server") with the two-stage Dockerfile of crate::stage::dockerfile; the checks, the CMD array, the gcloud invocations and the console output follow ADK’s.

Structs§

BuildFlags
The build flags.
CloudRunFlags
The flags of gadk deploy cloudrun, plus gadk’s --bin and the resolved Cargo target.
CloudRunServiceFlags
The Cloud Run service flags.
GCloudFlags
The gcloud flags.
LocalProxyFlags
The local proxy flags.
SourceFlags
The source flags.
TriggerConfigFlags
The trigger configuration flags.

Constants§

LONG
The command’s long description (tabs and trailing spaces preserved).
SHORT
The command’s short description.
TRIGGER_OIDC_FLAG_NAMES
The four OIDC flags whose passed state is recorded.

Functions§

check_oidc_values_are_not_flags
Rejects an audience or service account starting with -, as when an unset variable makes a flag take the next flag as its value.
check_trigger_oidc_emitted
Rejects OIDC values for a trigger that is not enabled (they are written only after that trigger’s keyword).
command
The cloudrun command with its flags, in ADK’s order, plus gadk’s --bin.
from_matches
The flags of a parsed cloudrun command, with the passed OIDC flags recorded (note_passed_oidc_flags from crate::flags::passed).
validate_service_name
Rejects a --service_name gcloud would parse as a flag.
validate_trigger_oidc
Rejects the trigger’s OIDC values the Dockerfile cannot carry or the trigger’s sublauncher would refuse at startup.
write_oidc_flags
Writes the trigger’s OIDC flags when set (compute_flags has checked that both or neither are).