chore(helm): PDBs, opt-in HPA, and pinned SPIRE reference chart - #64
Merged
Conversation
Harden squawk availability without touching alpha/beta/gamma resource tiers, and add an unopinionated on-ramp for the SPIFFE mTLS path added in a164a7c. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
🧙 Sourcery has finished reviewing your pull request! Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- For autoscaled workloads, PDB rendering is still keyed off the static
replicasvalues; consider basing thege(..., 2)checks on the HPAminReplicasinstead so disruption guarantees align with actual scaling behaviour. - The global
autoscaling.enabledflag controls all HPAs, but individual services (e.g. valkey, manager-scheduler) are excluded only by comments; if you expect more fine-grained control, you may want per-serviceautoscaling.enabledswitches or explicit gating inhpa.ymlto avoid accidental future inclusion. - In
values-prod.yml, you now have both top-levelautoscaling.enabledand per-serviceautoscalingblocks; it might be worth clarifying in values (or enforcing via helm schema) that per-service autoscaling config is ignored unless the global flag is true to avoid misconfiguration.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- For autoscaled workloads, PDB rendering is still keyed off the static `replicas` values; consider basing the `ge(..., 2)` checks on the HPA `minReplicas` instead so disruption guarantees align with actual scaling behaviour.
- The global `autoscaling.enabled` flag controls all HPAs, but individual services (e.g. valkey, manager-scheduler) are excluded only by comments; if you expect more fine-grained control, you may want per-service `autoscaling.enabled` switches or explicit gating in `hpa.yml` to avoid accidental future inclusion.
- In `values-prod.yml`, you now have both top-level `autoscaling.enabled` and per-service `autoscaling` blocks; it might be worth clarifying in values (or enforcing via helm schema) that per-service autoscaling config is ignored unless the global flag is true to avoid misconfiguration.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Availability + SPIFFE ops hardening for the charts.
k8s/helm/squawk: PodDisruptionBudgets rendered for any Deployment at ≥2 replicas (gatedpdb.enabled, minAvailable 1), opt-in HPA (off by default; enabled in values-prod.yml with per-service min/max + 70% CPU),replicas:omitted when autoscaling owns scaling. Newk8s/helm/spire: thin wrapper pinning the official spiffe/helm-charts-hardenedspirechart v0.29.0 (Chart.lock digest-pinned), trust domainpenguintech.io, README covering install order, ClusterSPIFFEID registration, XFCC forward/strip, and flipping SPIFFE_ENABLED.Validation: helm lint + helm template green on all values files and with autoscaling enabled.
Known gap (documented, out of scope here): squawk chart doesn't yet expose SPIFFE_* env as values — README gives interim
kubectl set envstep.Stack note: bases on
chore/dedup-reusable-code(top of the #53–#59 chain); auto-retargets towardv2.1.xas the stack merges bottom-up.🤖 Generated with Claude Code
Summary by Sourcery
Add availability safeguards and autoscaling controls to the squawk Helm chart and introduce a pinned SPIRE reference chart for SPIFFE integration.
New Features:
Enhancements: