forked from DeimosCloud/terraform-kubernetes-gitlab-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.tf
More file actions
17 lines (14 loc) · 678 Bytes
/
local.tf
File metadata and controls
17 lines (14 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
locals {
values_file = var.values_file != null ? file(var.values_file) : ""
repository = "https://charts.gitlab.io"
chart_name = "gitlab-runner"
runner_token = var.runner_registration_token == null ? var.runner_token : null
replicas = var.runner_token != null ? 1 : var.replicas
gcs_secret_name = lookup(var.cache.gcs, "CredentialsFile", "") != "" ? "google-application-credentials" : lookup(var.cache.gcs, "AccessID", "") != "" ? "gcsaccess" : ""
cache_secret_config = {
s3 = "s3access"
azure = "azureaccess"
gcs = local.gcs_secret_name
}
cache_secret_name = lookup(local.cache_secret_config, var.cache.type, "")
}