FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GCP Cloud Run app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Information Services
DevOps
Infrastructure
Terraform Modules
GCP Cloud Run app
Commits
60946f5c
Commit
60946f5c
authored
4 years ago
by
Monty Dawson
Browse files
Options
Downloads
Patches
Plain Diff
Refactor enabling beta launch stage to local with variable override
parent
ac6ccb6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!16
Use Google Beta provider to allow for min-scale option
Pipeline
#59075
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
locals.tf
+6
-0
6 additions, 0 deletions
locals.tf
main.tf
+1
-1
1 addition, 1 deletion
main.tf
variables.tf
+5
-0
5 additions, 0 deletions
variables.tf
with
12 additions
and
1 deletion
locals.tf
+
6
−
0
View file @
60946f5c
...
...
@@ -6,4 +6,10 @@ locals {
# Should a DNS domain mapping be created?
domain_mapping_present
=
var
.
dns_name
!=
""
# Do we need to enable the 'beta' launch stage - only required if certain beta
# functionality is being used, or if `enable_beta_launch_stage` is set downstream
enable_beta_launch_stage
=
(
var
.
enable_beta_launch_stage
||
var
.
allowed_ingress
!=
"all"
||
var
.
min_scale
>
0
)
}
This diff is collapsed.
Click to expand it.
main.tf
+
1
−
1
View file @
60946f5c
...
...
@@ -38,7 +38,7 @@ resource "google_cloud_run_service" "webapp" {
},
# Add the beta launch stage if required.
var
.
allowed_ingress
!=
"all"
||
var
.
min_scale
>
0
?
{
local
.
enable_beta_launch_stage
?
{
# Required to be able to set ingress type.
"run.googleapis.com/launch-stage"
:
"BETA"
,
}
:
{},
...
...
This diff is collapsed.
Click to expand it.
variables.tf
+
5
−
0
View file @
60946f5c
...
...
@@ -163,3 +163,8 @@ variable "template_annotations" {
template.
EOL
}
variable "enable_beta_launch_stage" {
default = false
description = "Force use of the '
BETA
' launch stage for the service."
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment