CloudRunV2ServiceServiceContainer class

One entry in template.containers. At minimum supply image. Use name to disambiguate when running multiple containers (sidecars).

Annotations
  • @immutable

Constructors

CloudRunV2ServiceServiceContainer({required TfArg<String> image, TfArg<String>? name, TfArg<List<String>>? command, TfArg<List<String>>? args, List<CloudRunV2ServiceEnvVar>? env, CloudRunV2ServiceContainerResources? resources, CloudRunV2ServiceContainerPort? ports, List<CloudRunV2ServiceVolumeMount>? volumeMounts, TfArg<String>? workingDir, TfArg<List<String>>? dependsOn, CloudRunV2ServiceStartupProbe? startupProbe, CloudRunV2ServiceLivenessProbe? livenessProbe})
const

Properties

args → TfArg<List<String>>?
Argument override. Overrides image CMD.
final
command → TfArg<List<String>>?
Entrypoint override. Overrides image ENTRYPOINT.
final
dependsOn → TfArg<List<String>>?
Names of containers that must reach Ready before this one starts (sidecar startup ordering).
final
env List<CloudRunV2ServiceEnvVar>?
Environment variables — both literal and secret-backed forms via the sealed CloudRunV2ServiceEnvVarSource dispatch.
final
hashCode int
The hash code for this object.
no setterinherited
image → TfArg<String>
Container image URL (GCR/GAR/Docker Hub).
final
livenessProbe CloudRunV2ServiceLivenessProbe?
Periodic probe that restarts the container on failure.
final
name → TfArg<String>?
DNS_LABEL container name. Required when running sidecars.
final
ports CloudRunV2ServiceContainerPort?
Container port. Cloud Run v2 supports exactly one port per container; pass a single CloudRunV2ServiceContainerPort (not a list).
final
resources CloudRunV2ServiceContainerResources?
CPU / memory / GPU limits + cold-start knobs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startupProbe CloudRunV2ServiceStartupProbe?
Periodic probe that gates traffic until the container reports ready.
final
volumeMounts List<CloudRunV2ServiceVolumeMount>?
Volume mounts — reference CloudRunV2ServiceServiceVolume.name from CloudRunV2ServiceTemplate.volumes.
final
workingDir → TfArg<String>?
Container working directory. Falls back to image default.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited