Skip to content

Commit

Permalink
fix: api batch yaml separator
Browse files Browse the repository at this point in the history
  • Loading branch information
smehboub committed Jan 29, 2023
1 parent 947591d commit cf2359e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/slo-generator/sre_shared_schedulers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource "google_cloud_scheduler_job" "scheduler" {
}
http_method = "POST"
uri = "${module.slo-generator.service_url}/?batch=true"
body = base64encode(join(";", [for name in each.value.names : "gs://${module.slo-generator.bucket_name}/slos/${name}.yaml"]))
body = base64encode(join("---\n", [for name in each.value.names : "gs://${module.slo-generator.bucket_name}/slos/${name}.yaml"]))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ resource "google_cloud_scheduler_job" "scheduler" {
}
http_method = "POST"
uri = "${module.slo-generator.service_url}/?batch=true"
body = base64encode(join(";", [for name in each.value.names : "gs://${module.slo-generator.bucket_name}/slos/${name}.yaml"]))
body = base64encode(join("---\n", [for name in each.value.names : "gs://${module.slo-generator.bucket_name}/slos/${name}.yaml"]))
}
}

Expand Down

0 comments on commit cf2359e

Please sign in to comment.