Skip to content

Add annotations support to ScaledObject template#334

Merged
tasuku43 merged 2 commits intomasterfrom
feature/add-scaled-object-annotations
Mar 11, 2026
Merged

Add annotations support to ScaledObject template#334
tasuku43 merged 2 commits intomasterfrom
feature/add-scaled-object-annotations

Conversation

@tasuku43
Copy link
Contributor

@tasuku43 tasuku43 commented Mar 11, 2026

Summary

  • Add autoscaling.keda.annotations support to ScaledObject metadata
  • Move $keda and $triggers variable definitions before metadata block to fix scope issue

This enables setting annotations like autoscaling.keda.sh/paused and autoscaling.keda.sh/paused-replicas on ScaledObject resources, which is needed for runtime replica override via ArgoCD environment variables.

Test plan

  • helm template with keda type and annotations renders correctly
  • helm template with keda type without annotations still works
  • Existing tests pass

🤖 Generated with Claude Code

tasuku43 and others added 2 commits March 11, 2026 11:21
Move $keda and $triggers variable definitions before metadata to enable
annotations rendering. This allows setting KEDA pause annotations
(autoscaling.keda.sh/paused, paused-replicas) for runtime replica control.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@cw-atkhry cw-atkhry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tasuku43 tasuku43 merged commit b653afa into master Mar 11, 2026
2 checks passed
@tasuku43 tasuku43 deleted the feature/add-scaled-object-annotations branch March 11, 2026 06:48
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.

2 participants