Skip to content

Commit ebe0020

Browse files
authored
Merge pull request #23 from gitpod-io/n/tf-module-version
feat: report Terraform module version to the management plane
2 parents 66c70c5 + 9969049 commit ebe0020

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.0.0

files/runner-cloud-init.tftpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ write_files:
682682
--env https_proxy=${HTTPS_PROXY} \
683683
--env all_proxy=${ALL_PROXY} \
684684
--env GITPOD_DEVELOPMENT_VERSION=${DEVELOPMENT_VERSION} \
685+
--env GITPOD_TERRAFORM_MODULE_VERSION=${TERRAFORM_MODULE_VERSION} \
685686
--env no_proxy=${NO_PROXY} \
686687
%{ if HAS_TRUST_BUNDLE ~}
687688
--volume /var/lib/gitpod/certs/gitpod-custom-ca.crt:/etc/ssl/certs/gitpod-trust-bundle.crt:ro \

locals.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
locals {
2+
module_version = trimspace(file("${path.module}/VERSION"))
3+
24
# VPC project ID - defaults to project_id if not specified (for Shared VPC support)
35
vpc_project_id = var.vpc_project_id != "" ? var.vpc_project_id : var.project_id
46

runner-vm.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ data "cloudinit_config" "runner" {
166166
CUSTOM_RUNNER_REGISTRY = local.custom_runner_registry
167167
# Environment VM labels configuration
168168
ENVIRONMENT_VM_LABELS = join(",", [for k, v in var.labels : "${k}=${v}"])
169+
# Module version reported to the management plane
170+
TERRAFORM_MODULE_VERSION = local.module_version
169171
})
170172
}
171173
}

0 commit comments

Comments
 (0)