Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/tools/golang.org/x/cry…
Browse files Browse the repository at this point in the history
…pto-0.31.0
  • Loading branch information
kruskall authored Dec 12, 2024
2 parents 60c92e5 + f4937b4 commit f43228f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
6 changes: 5 additions & 1 deletion testing/benchmark/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,23 @@ locals {
build = var.BUILD_ID
created_date = coalesce(var.CREATED_DATE, time_static.created_date.unix)
}
project = "apm-server-benchmarks"
}

module "tags" {
source = "../infra/terraform/modules/tags"
# use the convention for team/shared owned resources if we are running in CI.
# assume this is an individually owned resource otherwise.
project = startswith(var.user_name, "benchci") ? "benchmarks" : var.user_name
project = startswith(var.user_name, "benchci") ? local.project : "${local.project}-${var.user_name}"
}

provider "ec" {}

provider "aws" {
region = var.worker_region
default_tags {
tags = merge(local.ci_tags, module.tags.labels)
}
}

locals {
Expand Down
5 changes: 3 additions & 2 deletions testing/infra/terraform/modules/rally_workers/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
provider "google" {
project = var.gcp_project
region = var.gcp_region
project = var.gcp_project
region = var.gcp_region
default_labels = module.tags
}

locals {
Expand Down
4 changes: 0 additions & 4 deletions testing/infra/terraform/modules/soaktest_workers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ resource "google_compute_instance" "worker" {
access_config {}
}

labels = merge(module.tags.labels, {
workspace = terraform.workspace
})

metadata = {
ssh-keys = "${local.ssh_user_name}:${data.tls_public_key.worker_login.public_key_openssh}"
}
Expand Down
4 changes: 4 additions & 0 deletions testing/infra/terraform/modules/soaktest_workers/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ provider "google" {
project = var.gcp_project
region = var.gcp_region
zone = var.gcp_zone

default_labels = merge(module.tags.labels, {
workspace = terraform.workspace
})
}
Binary file modified x-pack/apm-server/default.pgo
Binary file not shown.

0 comments on commit f43228f

Please sign in to comment.