Skip to content

Commit

Permalink
Fix CW agent image and test generator
Browse files Browse the repository at this point in the history
  • Loading branch information
KlwntSingh committed Feb 20, 2024
1 parent 47b88f8 commit 4733868
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions generator/test_case_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,27 @@ var testTypeToTestConfig = map[string][]testConfig{
testDir: "./test/metric_value_benchmark",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{
testDir: "./test/metric_value_benchmark",
terraformDir: "terraform/eks/daemon/windows",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{
testDir: "./test/statsd", terraformDir: "terraform/eks/daemon/statsd",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{
testDir: "./test/emf", terraformDir: "terraform/eks/daemon/emf",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{
testDir: "./test/fluent", terraformDir: "terraform/eks/daemon/fluent/d",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{testDir: "./test/fluent", terraformDir: "terraform/eks/daemon/fluent/bit"},
{testDir: "./test/app_signals", terraformDir: "terraform/eks/daemon/app_signals",
targets: map[string]map[string]struct{}{"arc": {"amd64": {}}},
},
{testDir: "./test/fluent", terraformDir: "terraform/eks/daemon/fluent/windows"},
},
"eks_deployment": {
Expand Down
2 changes: 1 addition & 1 deletion terraform/eks/daemon/windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ resource "null_resource" "windows-cwagent" {
command = <<-EOT
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sed 's+CW_TEST_IMAGE+506463145083.dkr.ecr.us-west-2.amazonaws.com/windows-container-internal:latest+' ./../default_resources/cwagent-windows.yaml | ./kubectl apply -f -
sed 's+CW_TEST_IMAGE+${var.cwagent_image_repo}:${var.cwagent_image_tag}+' ./../default_resources/cwagent-windows.yaml | ./kubectl apply -f -
./kubectl apply -f ./../default_resources/test-sample-windows.yaml
./kubectl rollout status daemonset cloudwatch-agent-windows -n amazon-cloudwatch --timeout 600s
./kubectl rollout status deployment windows-test-deployment --timeout 600s
Expand Down

0 comments on commit 4733868

Please sign in to comment.