This PR relaxes the format of the subnet we pass to gcloud dataproc batches submit, before this PR the code built a subnet string from three inputs as described below:
# If set then this variable is used to form a value for Batches subnet of this form:
# projects/${GOOGLE_DATAPROC_PROJECT}/regions/${GOOGLE_DATAPROC_REGION}/subnetworks/${GOOGLE_DATAPROC_BATCHES_SUBNET}
This was forcing the GOOGLE_DATAPROC_PROJECT setting into the subnet and there was no way to deviate from the project hosting Dataproc.
This PR removes the fixed formatting and passes the value from offload.env through to gcloud which provides extra flexibility when a shared VPC is used.
This PR relaxes the format of the subnet we pass to
gcloud dataproc batches submit
, before this PR the code built a subnet string from three inputs as described below:This was forcing the
GOOGLE_DATAPROC_PROJECT
setting into the subnet and there was no way to deviate from the project hosting Dataproc.This PR removes the fixed formatting and passes the value from
offload.env
through togcloud
which provides extra flexibility when a shared VPC is used.