From 0c259da118cd3f349ab31844ac1457b0e63ec1a9 Mon Sep 17 00:00:00 2001 From: musa-asad Date: Fri, 15 Nov 2024 16:46:09 -0500 Subject: [PATCH] Add variables. --- terraform/e2e/eks/main.tf | 21 ++++++++++++++++++++- terraform/e2e/eks/variables.tf | 4 ++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/terraform/e2e/eks/main.tf b/terraform/e2e/eks/main.tf index 89f67fd3a..2966b9772 100644 --- a/terraform/e2e/eks/main.tf +++ b/terraform/e2e/eks/main.tf @@ -94,6 +94,25 @@ resource "aws_iam_role_policy_attachment" "node_CloudWatchAgentServerPolicy" { resource "null_resource" "test" { provisioner "local-exec" { - command = "go test -v ${var.validate_test}" + command = <<-EOT + go test -v ${var.validate_test} \ + -region=${var.region} \ + -k8s_version=${var.k8s_version} \ + -cluster_name=${var.cluster_name} \ + -agent_branch=${var.agent_branch} \ + -operator_branch=${var.operator_branch} \ + -helm_charts_branch=${var.helm_charts_branch} \ + -otel-config=${var.otel-config} \ + -agent-config=${var.agent-config} \ + -prometheus-config=${var.prometheus-config} \ + -cloudwatch_agent_repository=${var.cloudwatch_agent_repository} \ + -cloudwatch_agent_tag=${var.cloudwatch_agent_tag} \ + -cloudwatch_agent_repository_url=${var.cloudwatch_agent_repository_url} \ + -cloudwatch_agent_operator_repository=${var.cloudwatch_agent_operator_repository} \ + -cloudwatch_agent_operator_tag=${var.cloudwatch_agent_operator_tag} \ + -cloudwatch_agent_operator_repository_url=${var.cloudwatch_agent_operator_repository_url} \ + -sample-app=${var.sample-app} \ + -sample-app-name=${var.sample-app-name} + EOT } } diff --git a/terraform/e2e/eks/variables.tf b/terraform/e2e/eks/variables.tf index df8af4b4f..ac06773d4 100644 --- a/terraform/e2e/eks/variables.tf +++ b/terraform/e2e/eks/variables.tf @@ -78,12 +78,12 @@ variable "cloudwatch_agent_operator_repository_url" { variable "validate_test" { type = string - default = "../../../test/e2e/jmx/validate_test.go" + default = "" } variable "sample-app" { type = string - default = "../../../test/e2e/jmx/files/sample_applications/tomcat-deployment.yaml" + default = "" } variable "sample-app-name" {