Skip to content

Commit 23e3ca9

Browse files
authored
Add GCB trigger for opentelemetry-operations-js + Cloud Run (#19)
1 parent 9490a30 commit 23e3ca9

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

tf/cloud-functions-gen2/cloud-function.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ resource "google_storage_bucket_object" "object" {
6262
name = "function-source.zip"
6363
bucket = google_storage_bucket.bucket.name
6464
# Add path to the zipped function source code, source file zip should be in the bucket
65-
source = "${var.functionsource}"
65+
source = var.functionsource
6666
}
6767

6868
module "pubsub" {

tf/gae/gae.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@ resource "google_app_engine_flexible_app_version" "test_service" {
4242
cpu_utilization {
4343
target_utilization = 0.9
4444
}
45-
max_total_instances = 1
46-
min_total_instances = 1
45+
max_total_instances = 1
46+
min_total_instances = 1
4747
}
4848

4949
env_variables = {
50-
"PUSH_PORT" = "8080",
50+
"PUSH_PORT" = "8080",
5151
"REQUEST_SUBSCRIPTION_NAME" = module.pubsub.info.request_topic.subscription_name,
52-
"RESPONSE_TOPIC_NAME" = module.pubsub.info.response_topic.topic_name,
53-
"PROJECT_ID" = var.project_id,
54-
"SUBSCRIPTION_MODE" = "push"
52+
"RESPONSE_TOPIC_NAME" = module.pubsub.info.response_topic.topic_name,
53+
"PROJECT_ID" = var.project_id,
54+
"SUBSCRIPTION_MODE" = "push"
5555
}
5656

57-
noop_on_destroy = false
57+
noop_on_destroy = false
5858
delete_service_on_destroy = true
59-
service_account = "${var.project_id}@appspot.gserviceaccount.com"
59+
service_account = "${var.project_id}@appspot.gserviceaccount.com"
6060
}
6161

6262
module "pubsub" {
@@ -78,7 +78,7 @@ variable "image" {
7878
}
7979

8080
variable "runtime" {
81-
type = string
81+
type = string
8282
}
8383

8484
output "pubsub_info" {

tf/persistent/repo-ci-triggers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module "java" {
2727
module "js" {
2828
source = "../modules/repo-ci-triggers"
2929
repository = "opentelemetry-operations-js"
30-
run_on = ["local", "gce", "gke"]
30+
run_on = ["local", "gce", "gke", "cloud-run"]
3131
}
3232

3333
module "go" {

0 commit comments

Comments
 (0)