Add KEDA integration test infrastructure - #732
Open
vaishnavi-30-beep wants to merge 31 commits into
Open
Conversation
Add KEDA solution integration tests following the same pattern as Karpenter. Includes metric existence, instrumentation scope, label decoration, K8s resource attribute, and cloud attribute validation. Changes: - Add test/otel/solutions/keda/ with setup, metrics, and test files - Add SourceKEDA to otelmetrics source registry - Add KEDA Helm install and test ScaledObject to otel terraform - Enable KEDA solution in CloudWatch observability Helm chart - Add keda_version variable (default 2.16.1) - Add KEDA test runner to terraform validator
Update metric definitions based on actual KEDA operator /metrics endpoint: - keda_scaler_errors_total -> keda_scaler_detail_errors_total - keda_resource_totals -> keda_resource_registered_total - Add keda_scaled_object_errors_total - Add keda_trigger_registered_total - Update ExpectedLabels to match actual label names
The actual KEDA metric only exposes 'type' and 'namespace' labels, not 'resource'.
- Add 2-minute wait before KEDA tests for metric propagation in CI - Rename helm_chart_branch to keda_chart_ref variable - Clone helm chart from vaishnavi-30-beep/helm-charts fork - Use path.module for chart path
- Remove all Karpenter-related terraform resources (IAM, helm, nodepool, subnet tags) to make this a KEDA-only branch - Remove karpenter_version variable and Karpenter test runner step - Add ScaledJob workload with cron trigger for keda_scaled_job_errors_total metric coverage - Make cloud.account.id and cloud.resource_id assertions unconditional - Add metric value sanity checks: keda_build_info==1, keda_scaler_active==1, keda_scaler_metrics_value>=0
…all timeout KEDA finalizers deadlock during terraform destroy when the operator pods are removed before ScaledObject/ScaledJob CRs. Add destroy-time provisioners to explicitly delete KEDA custom resources before the helm release is uninstalled.
petruanica
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add end-to-end integration tests for KEDA solution metrics pipeline.
Changes
Related
Testing