Repository navigation
Upgrade keda pack to 2.21.0 - #350
CarlosRamirezSWO wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🛡️ CVE Scan Results
✅ CVE Scan: completed successfully.
CVE Summary:
- Total images scanned: 3
- Clean images: 0
- Images with CVEs: 3
- Total CVEs found: 18
🔴 Critical CVEs: 0
🟠 High CVEs: 0
🟡 Medium CVEs: 0
🟢 Low CVEs: 18
Images with CVEs:
- ghcr.io/kedacore/keda-admission-webhooks:2.21.0: 18 CVEs (Critical: 0, High: 0, Medium: 0, Low: 18)
- ghcr.io/kedacore/keda-metrics-apiserver:2.21.0: 18 CVEs (Critical: 0, High: 0, Medium: 0, Low: 18)
- ghcr.io/kedacore/keda:2.21.0: 18 CVEs (Critical: 0, High: 0, Medium: 0, Low: 18)
CVE findings are informational and do not block merging.
Pack review — keda-2.21.0 (repo: spectrocloud/pack-central)Packs Validation: ✅ passed (run 39695531957) — 9/9 checks green, no validator errors New pack — no prior version on
|
| Rendered | Declared in values.yaml |
Registry probe |
|---|---|---|
ghcr.io/kedacore/keda:2.21.0 |
values.yaml:5 ✅ |
HTTP 200 ✅ |
ghcr.io/kedacore/keda-metrics-apiserver:2.21.0 |
values.yaml:6 ✅ |
HTTP 200 ✅ |
ghcr.io/kedacore/keda-admission-webhooks:2.21.0 |
values.yaml:7 ✅ |
HTTP 200 ✅ |
Nothing rendered-but-undeclared, nothing declared-but-unrendered. The full render is 6 CRDs, 3 Deployments, 3 Services, 3 ServiceAccounts, 1 APIService, 1 ValidatingWebhookConfiguration, 4 ClusterRoles, 5 ClusterRoleBindings, 1 Role, 2 RoleBindings. cert-manager is off by default, so no Issuer/Certificate and no extra images from that path. ✅
Overlay key drift. charts.keda has 430 key paths; the chart's values.yaml has the same 430. Zero stale keys, zero unrepresented upstream keys — the overlay was generated from 2.21.0's values, not carried over from an older chart. A value-level comparison is identical too (only comment/blank-line formatting differs). ✅
CRD handling on upgrade. All 6 CRDs live in charts/keda/templates/crds/ (not the crds/ directory), gated on crds.install: true. That means Helm does manage them on upgrade — the usual "Helm never updates CRDs" trap does not apply here. Compared against the 2.20.2 chart proposed in Upgrade keda pack to 2.20.2 #319, three CRDs change (clustertriggerauthentications, scaledjobs, triggerauthentications); all three are additive schema changes and Helm will apply them. No manual kubectl apply step is needed and no intermediate version is required.
Blockers
- None.
Major
-
README.md:32-35documents four parameters that do not exist. The table listscharts.keda.operator.resources.requests.cpu charts.keda.operator.resources.requests.memory charts.keda.operator.resources.limits.cpu charts.keda.operator.resources.limits.memorybut there is no
operator.resourceskey in the chart. The real paths are under a top-levelresources:block (values.yaml:614), keyed by component:charts: keda: resources: operator: { limits: {cpu: 1, memory: 1000Mi}, requests: {cpu: 100m, memory: 100Mi} } metricServer: { limits: {cpu: 1, memory: 1000Mi}, requests: {cpu: 100m, memory: 100Mi} } webhooks: { limits: {cpu: 1, memory: 1000Mi}, requests: {cpu: 100m, memory: 100Mi} }
The documented values are right (
100m/100Mi/1/1000Mi), only the paths are wrong. This matters because Helm silently ignores unknown keys — a user who follows the README and setscharts.keda.operator.resources.limits.memorygets a no-op and keeps the 1000Mi default, with no error anywhere. Please correct the four rows tocharts.keda.resources.operator.*, and consider adding themetricServerandwebhooksrows too, since the README presents all three components as first-class.
Nits / observations
README.md:113-122is apowershellfenced block containingkubectl get crd | Select-String keda.sh. Every other code block in the README isbash.Select-Stringis a PowerShell cmdlet and will fail in a shell; if the block is meant to be PowerShell it is inconsistent with the rest, and if it is meant to be bash it should begrep keda.sh. (The surrounding claim is correct, for what it is worth — the chart really does render 6 CRDs, asREADME.md:126says.)- KEDA 2.21 turns on service-account-token audience enforcement by default, and the README's upgrade warning does not mention it. Rendering 2.21.0 vs 2.20.2 with the respective pack overlays, the operator Deployment gains, purely from upstream defaults (
operator.serviceAccountTokens.mode: enforce-audience):plus new- "--service-account-token-mode=enforce-audience" - "--vault-kubernetes-auth-token-file=/var/run/secrets/keda-vault/token" env: KEDA_SERVICE_ACCOUNT_TOKEN_AUDIENCES = [{"audience":"vault"}] + projected serviceAccountToken volume "keda-vault" (audience: vault, 3600s)WATCH_LABEL_SELECTOR,WATCH_LABEL_SELECTOR_FOR_TRIGGERAUTHandKEDA_KUBERNETES_API_TIMEOUT=5s. This is upstream behaviour, not a pack defect, butenforce-audienceis a behaviour change for anyone using HashiCorp VaultTriggerAuthentication(mode: legacyrestores the old behaviour). The README's[!CAUTION]atREADME.md:59-60points at the KEDA changelog generically; calling this out by name would be more useful. - New
metricsServer.registerAPIServicegate. 2.21.0 changesmetrics-server/apiservice.yamlfrom{{- if .Values.metricsServer.enabled }}to{{- if and .Values.metricsServer.enabled .Values.metricsServer.registerAPIService }}. The pack carries the upstream defaulttrue, so behaviour is unchanged — just flagging that disabling it silently removes thev1beta1.external.metrics.k8s.ioAPIService thatREADME.md:121tells users to check for. - Image tags are not pinned.
charts.keda.image.{keda,metricsApiServer,webhooks}.tagare all"", i.e. resolved fromappVersion. That is upstream's default and it happens to produce exactly the2.21.0tags declared inpack.content.imagestoday, so nothing is broken. But the argo-rollouts and crossplane packs in this repo pin the tag explicitly precisely so the airgap list can't drift from what renders. Worth considering for consistency. charts.keda.image.pullPolicy: Always(upstream default,README.md:30documents it correctly). On edge/airgapped clustersAlwaysmeans a registry round-trip on every pod start;IfNotPresentis the usual choice for packs. Flagging for a deliberate decision rather than inheriting it.- The
scaledjobs.keda.shCRD renders to ~652 KiB. That is an upstream trait, not a regression (2.20.2 renders 667,684 bytes, 2.21.0 renders 667,697), and Helm handles it fine since Helm does not use the 262,144-bytekubectl.kubernetes.io/last-applied-configurationannotation. It will, however, fail if anyone ever applies these manifests with client-sidekubectl apply. Just so it is on the record if a support case ever mentionsmetadata.annotations: Too long. - No Docker Hardened Images / DHI references in
README.md. ✅
Stacked PRs
- Upgrade keda pack to 2.20.2 #319 "Upgrade keda pack to 2.20.2" (edwin-villa, 2026-09-04) is still open and adds
packs/keda-2.20.2/— the same brand-new pack at an earlier version.
To answer the upgrade-path question directly: #319 is not a prerequisite. This PR is branched off main, not off #319 (git merge-base --is-ancestor says no), and prrev_350's tree contains packs/keda-2.21.0/ only — no 2.20.2 anywhere. Nothing in this pack assumes an intermediate version exists:
- the 6 CRDs ship in
templates/crds/and are created from scratch on a fresh install; - the ValidatingWebhookConfiguration and its TLS certs are self-generated (
certificates.autoGenerated: true) with no migration step; - the 2.20 → 2.21 deltas I found (3 CRD schema changes, the
registerAPIServicegate, the vault-audience args) are all additive and apply equally to a fresh install.
So merging #350 alone gives a complete, working keda pack. If both merge, main ends up with two keda versions (2.20.2 and 2.21.0) where there are currently none — fine if that is wanted for version choice, redundant otherwise. Recommendation: close #319 as superseded unless there is a reason to publish 2.20.2 as well; this PR does not need it.
Validator output — 9/9 checks passed
- ✅ JSON syntax is valid for packs/keda-2.21.0/pack.json
- ✅ Schema validation passed for packs/keda-2.21.0/pack.json
- ✅ pack.json version has no leading 'v' for packs/keda-2.21.0/pack.json
- ✅ All chart tarballs present for packs/keda-2.21.0
- ✅ Chart values structure check passed for packs/keda-2.21.0
- ✅ Successfully verified Image content section for packs/keda-2.21.0
- ✅ Logo file is present in pack packs/keda-2.21.0
- ✅ README.md file is present in pack packs/keda-2.21.0
- ✅ Packs validation successful...
Review generated by the pack-reviewer Claude Code subagent.
Upgrade keda pack to 2.21.0