Skip to content

Commit

Permalink
feat(cloud run): Get ingress value from config
Browse files Browse the repository at this point in the history
  • Loading branch information
mahad-akhter committed Nov 17, 2023
1 parent 90e7e99 commit 427a052
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/providers/gcp/cloudrun/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,13 @@ func (r *Resource) GetServiceTemplate(ctx context.Context, wl *Workload) *runpb.
launchStageConfig := r.Config["launch_stage"].(string)
launchStage := api.LaunchStage(api.LaunchStage_value[launchStageConfig])

ingressConfig := r.Config["ingress"].(string)
ingress := runpb.IngressTraffic(runpb.IngressTraffic_value[ingressConfig])

service := &runpb.Service{
Template: rt,
LaunchStage: launchStage,
Ingress: runpb.IngressTraffic_INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER,
Ingress: ingress,
}

tt := &runpb.TrafficTarget{
Expand Down

0 comments on commit 427a052

Please sign in to comment.