Skip to content

Commit

Permalink
Add variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Nov 15, 2024
1 parent 6ea0508 commit 0c259da
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
21 changes: 20 additions & 1 deletion terraform/e2e/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
4 changes: 2 additions & 2 deletions terraform/e2e/eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 0c259da

Please sign in to comment.