diff --git a/internal/providers/gcp/cloudrun/resource.go b/internal/providers/gcp/cloudrun/resource.go index 41f076509..4d0f4a38d 100644 --- a/internal/providers/gcp/cloudrun/resource.go +++ b/internal/providers/gcp/cloudrun/resource.go @@ -313,10 +313,14 @@ func (r *Resource) GetServiceTemplate(ctx context.Context, wl *Workload) *runpb. } volumes := []*runpb.Volume{volume} + executionEnvConfig := templateConfig["execution_environment"].(string) + executionEnv := runpb.ExecutionEnvironment( + runpb.ExecutionEnvironment_value[executionEnvConfig]) + rt := &runpb.RevisionTemplate{ Containers: []*runpb.Container{container}, Scaling: scaling, - ExecutionEnvironment: runpb.ExecutionEnvironment(r.Generation), + ExecutionEnvironment: executionEnv, Revision: r.Revision, VpcAccess: vpcAccess, Volumes: volumes,