Skip to content

Commit

Permalink
feat(cloud run): get execution env from config
Browse files Browse the repository at this point in the history
  • Loading branch information
mahad-akhter committed Nov 17, 2023
1 parent 427a052 commit c861208
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/providers/gcp/cloudrun/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c861208

Please sign in to comment.