Use Google Beta provider to allow for min-scale option
2 unresolved threads
2 unresolved threads
Merge request reports
Activity
assigned to @wgd23
48 48 "run.googleapis.com/ingress" : var.allowed_ingress, 49 49 }, 50 50 51 { 52 # have to set launch stage to beta in order to support minScale which is currently 53 # a beta feature 54 "run.googleapis.com/launch-stage" = "BETA" changed this line in version 2 of the diff
requested review from @amc203
38 38 }, 39 39 40 40 # Add the beta launch stage if required. 41 var.allowed_ingress != "all" ? { 41 var.allowed_ingress != "all" || var.min_scale > 0 ? { And, while we're at it, have a variable,
var.enable_beta_launch_stage
which can be used to force beta if there is some external reason for doing so.So:
# locals.tf locals { # ... # Logic determining if we need to enable the beta launch stage for the service enable_beta_launch_stage = var.enable_beta_launch_stage || var.allowed_ingress != "all" || var.min_scale > 0 } # variables.tf variable "enable_beta_launch_stage" { default = false description = "Force use of the 'BETA' launch stage for the service." }
Edited by Dr Rich Warehamchanged this line in version 4 of the diff
Tested myself and confirmed that
min_scale
works correctly using https://gitlab.developers.cam.ac.uk/uis/devops/iam/deploy-identity/-/merge_requests/19min_scale
= 1:min_scale
= 0:Edited by Dr Rich Wareham
added 1 commit
- 60946f5c - Refactor enabling beta launch stage to local with variable override
requested review from @rjw57
mentioned in commit 993db4d1
Please register or sign in to reply