diff --git a/generator/resources/eks_addon_test_matrix.json b/generator/resources/eks_addon_test_matrix.json index 6a84253ea..d41508770 100644 --- a/generator/resources/eks_addon_test_matrix.json +++ b/generator/resources/eks_addon_test_matrix.json @@ -1,10 +1,11 @@ [ { - "k8s_version": "1.29", + "k8sVersion": "1.31", "addon_name":"amazon-cloudwatch-observability", - "addon_version":"v1.6.0-eksbuild.1", - "ami_type": "AL2_x86_64_GPU", + "addon_version":"v2.5.0-eksbuild.1", + "ami": "AL2_x86_64_GPU", "terraform_dir": "terraform/eks/addon/gpu", - "test_dir": "../../../../test/gpu" + "test_dir": "../../../../test/gpu", + "instanceType":"g4dn.xlarge" } ] \ No newline at end of file diff --git a/generator/resources/eks_daemon_test_matrix.json b/generator/resources/eks_daemon_test_matrix.json index 82bb2c6bb..245c75b16 100644 --- a/generator/resources/eks_daemon_test_matrix.json +++ b/generator/resources/eks_daemon_test_matrix.json @@ -1,12 +1,12 @@ [ { - "k8s_version": "1.24", + "k8sVersion": "1.31", "ami": "AL2_x86_64", "instanceType":"t3.medium", "arc": "amd64" }, { - "k8s_version": "1.24", + "k8sVersion": "1.31", "ami": "AL2_ARM_64", "instanceType":"m6g.large", "arc": "arm64" diff --git a/generator/resources/eks_deployment_test_matrix.json b/generator/resources/eks_deployment_test_matrix.json index 603357f44..1b250f5c7 100644 --- a/generator/resources/eks_deployment_test_matrix.json +++ b/generator/resources/eks_deployment_test_matrix.json @@ -1,5 +1,5 @@ [ { - "k8sVersion": "1.24" + "k8sVersion": "1.31" } ] \ No newline at end of file diff --git a/generator/test_case_generator.go b/generator/test_case_generator.go index a811e7c5c..11490e054 100644 --- a/generator/test_case_generator.go +++ b/generator/test_case_generator.go @@ -28,7 +28,7 @@ type matrixRow struct { AgentStartCommand string `json:"agentStartCommand"` CaCertPath string `json:"caCertPath"` ValuesPerMinute int `json:"values_per_minute"` // Number of metrics to be sent or number of log lines to write - K8sVersion string `json:"k8s_version"` + K8sVersion string `json:"k8sVersion"` TerraformDir string `json:"terraform_dir"` UseSSM bool `json:"useSSM"` ExcludedTests string `json:"excludedTests"` diff --git a/terraform/eks/addon/gpu/main.tf b/terraform/eks/addon/gpu/main.tf index e63d456b3..d56713d7b 100644 --- a/terraform/eks/addon/gpu/main.tf +++ b/terraform/eks/addon/gpu/main.tf @@ -21,7 +21,7 @@ locals { } resource "aws_eks_cluster" "this" { - name = "cwagent-operator-eks-integ-${module.common.testing_id}" + name = "cwagent-addon-eks-integ-${module.common.testing_id}" role_arn = local.role_arn version = var.k8s_version enabled_cluster_log_types = [ @@ -40,17 +40,17 @@ resource "aws_eks_cluster" "this" { # EKS Node Groups resource "aws_eks_node_group" "this" { cluster_name = aws_eks_cluster.this.name - node_group_name = "cwagent-operator-eks-integ-node" + node_group_name = "cwagent-addon-eks-integ-node" node_role_arn = aws_iam_role.node_role.arn subnet_ids = module.basic_components.public_subnet_ids scaling_config { - desired_size = 2 - max_size = 2 - min_size = 2 + desired_size = 1 + max_size = 1 + min_size = 1 } - ami_type = "AL2_x86_64_GPU" + ami_type = var.ami_type capacity_type = "ON_DEMAND" disk_size = 20 instance_types = [var.instance_type] @@ -65,7 +65,7 @@ resource "aws_eks_node_group" "this" { # EKS Node IAM Role resource "aws_iam_role" "node_role" { - name = "cwagent-operator-eks-Worker-Role-${module.common.testing_id}" + name = "cwagent-addon-eks-Worker-Role-${module.common.testing_id}" assume_role_policy = <