Skip to content

test(gke): run the GKE suite through the Helm chart - #781

Open
gaurang-delavadiya wants to merge 1 commit into
aws:mainfrom
gaurang-delavadiya:convert-gke-tests-to-helm
Open

gaurang-delavadiya wants to merge 1 commit into
aws:mainfrom
gaurang-delavadiya:convert-gke-tests-to-helm

Conversation

@gaurang-delavadiya

@gaurang-delavadiya gaurang-delavadiya commented Oct 9, 2026 •

Copy link
Copy Markdown

Description of the issue

The GKE suite added in #759 deploys the agent with a hand-written default:otel DaemonSet and is not in the test case generator. EKS, and AKS with #780, install the agent through the amazon-cloudwatch-observability Helm chart and run from the generated matrix.

Description of changes

  • terraform/gcp/gke installs the chart with helm_release (k8sMode=GKE, agent.config=default:otel), patches the AmazonCloudWatchAgent image to the image under test, attaches the ECR pull secret to the cloudwatch-agent ServiceAccount and restarts the agent. The cluster, IAM OIDC provider and IAM role setup are unchanged.
  • Container Insights, OTel Container Insights, Application Signals and container logs are disabled: the suite covers the default OTel config, and the chart's fluent-bit has no GKE web-identity setup yet.
  • New variables helm_chart_branch (default main) and helm_set_values; the helm and external providers are added.
  • Generator: new gke test type and generator/resources/gke_test_matrix.json (e2-standard-4).
  • TestGKE is unchanged.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

  • Full terraform apply in a GCP project with chart branch main and agent image 7b574ef5: TestGKE PASS (Metrics, Logs, Traces); destroy completed with no leftover state.
  • The GenerateTestMatrix and GKEIntegrationTest scripts from ci: run GKE integration tests from the generated test matrix amazon-cloudwatch-agent#2343 were run locally against this branch, with terraform plan in place of apply/destroy: gke_matrix for each test_dir_filter value, chart branch resolution, and plan / plan -destroy pass.
  • gofmt, terraform validate and terraform fmt -check pass.

Related pull requests

Replace the hand-written DaemonSet manifests in terraform/gcp/gke with an
install of the amazon-cloudwatch-observability Helm chart (k8sMode=GKE), and
register the GKE suite in the test case generator so CI runs it from the
generated matrix, like EKS and AKS.

- terraform/gcp/gke: install the chart with default:otel, patch the agent
  image under test, keep the cluster, OIDC and IAM setup unchanged
- Container Insights, Application Signals and container logs are disabled;
  the chart's fluent-bit has no GKE web-identity support yet
- generator: add the gke test type and gke_test_matrix.json
- The existing GKE Go test is reused unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant