Skip to content

feat: add reusable autoscaling policy audit workflow#247

Closed
tobias0106 wants to merge 1 commit intomainfrom
feat/autoscaling-audit-workflow
Closed

feat: add reusable autoscaling policy audit workflow#247
tobias0106 wants to merge 1 commit intomainfrom
feat/autoscaling-audit-workflow

Conversation

@tobias0106
Copy link

Summary

  • Adds check-autoscaling-policy.yml as a reusable workflow_call workflow
  • Scans changed apps/.+/(staging|production)/app/values.yaml files in PRs
  • Flags services missing HPA, KEDA, or an explicit autoscalingPolicy.exempt: true with a ⚠️ PR comment
  • Comment is only posted when there are missing entries; always exits 0 (informational, never blocks merges)

Test plan

  • Call this workflow from a PR in kube-manifests touching a production values.yaml without autoscaling configured — verify ⚠️ warning comment appears
  • Add autoscalingPolicy.exempt: true + reason to the same file — verify comment updates to 🚫 Exempt
  • Enable autoscaling.enabled: true — verify no comment is posted

🤖 Generated with Claude Code

Adds check-autoscaling-policy.yml as a reusable workflow_call workflow
that scans changed values.yaml files in PRs and warns when a service
has no HPA, KEDA, or explicit autoscalingPolicy.exempt. Posts an
informational comment on the PR and always exits 0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
)
comment = f"""## ⚠️ Autoscaling Audit

| Service | Environment | Status | Details |

Choose a reason for hiding this comment

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

🚫 [actionlint] reported by reviewdog 🐶
could not parse as YAML: did not find expected comment or line break [syntax-check]

@BrianEstrada BrianEstrada deleted the feat/autoscaling-audit-workflow branch February 23, 2026 20:45
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