Skip to content

Upgrade keda pack to 2.21.0 - #350

Open
CarlosRamirezSWO wants to merge 1 commit into
spectrocloud:mainfrom
CarlosRamirezSWO:keda-2210
Open

CarlosRamirezSWO wants to merge 1 commit into
spectrocloud:mainfrom
CarlosRamirezSWO:keda-2210

Conversation

@CarlosRamirezSWO

Copy link
Copy Markdown
Contributor

Upgrade keda pack to 2.21.0

@bulwark-sc-ent bulwark-sc-ent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛡️ 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.

@vishwanaths

Copy link
Copy Markdown
Collaborator

Pack review — keda-2.21.0 (repo: spectrocloud/pack-central)

Packs Validation: ✅ passed (run 39695531957) — 9/9 checks green, no validator errors
source annotation: ✅ community matches expected community
Pack metadata: name=keda version=2.21.0 addonType=system app layer=addon displayName=Keda contributor=spectrocloud cloudTypes=[all] docsURL=https://keda.sh/docs/latest/
Verdict: the pack itself is sound — all three images are declared, all three render, all three resolve, the tarball is a genuine repack and the overlay has zero key drift. One Major README bug (four documented parameters that do not exist) and a handful of Nits. Also: despite the title, this is a brand-new pack, not an upgrade — see the last section.

New pack — no prior version on main

There is no packs/keda-* directory anywhere on main (checked the full packs/ listing: 275 entries, zero keda), and no keda pack in spectrocloud/pax either. So there is nothing to diff against and no in-place upgrade path to worry about: whatever Palette installs here is a fresh install.

The PR title says "Upgrade keda pack to 2.21.0", which is misleading. Worth retitling to "Add keda 2.21.0 pack" so the reviewer queue reads correctly.

Pack contents

  • pack.json: name: keda, version: 2.21.0, charts: ["charts/keda-2.21.0.tgz"], layer: addon, addonType: system app, cloudTypes: [all], k8s dependency minVersion: 1.29 (optional). eol and group present but empty — fine for a new pack.
  • Chart.yaml: name: keda, version: 2.21.0, appVersion: 2.21.0, kubeVersion: '>=v1.23.0-0'. Pack version, chart version, appVersion and tarball filename all agree. ✅ (Note the chart's own kubeVersion floor is 1.23 while pack.json requires 1.29 — the pack is the stricter of the two, which is the safe direction.)
  • charts/keda-2.21.0.tgz: verified as a genuine repack — every file inside the tarball is byte-identical to the unpacked charts/keda/ tree, nothing extra, nothing missing, no stale copy. ✅
  • logo.png, README.md present.

Checks run beyond CI

  • Rendered-vs-declared images — all three present and correct. helm template against the bundled tarball with the pack's own .charts.keda overlay renders exactly three container images:

    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-35 documents four parameters that do not exist. The table lists

    charts.keda.operator.resources.requests.cpu
    charts.keda.operator.resources.requests.memory
    charts.keda.operator.resources.limits.cpu
    charts.keda.operator.resources.limits.memory
    

    but there is no operator.resources key in the chart. The real paths are under a top-level resources: 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 sets charts.keda.operator.resources.limits.memory gets a no-op and keeps the 1000Mi default, with no error anywhere. Please correct the four rows to charts.keda.resources.operator.*, and consider adding the metricServer and webhooks rows too, since the README presents all three components as first-class.

Nits / observations

  • README.md:113-122 is a powershell fenced block containing kubectl get crd | Select-String keda.sh. Every other code block in the README is bash. Select-String is 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 be grep keda.sh. (The surrounding claim is correct, for what it is worth — the chart really does render 6 CRDs, as README.md:126 says.)
  • 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):
    - "--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)
    
    plus new WATCH_LABEL_SELECTOR, WATCH_LABEL_SELECTOR_FOR_TRIGGERAUTH and KEDA_KUBERNETES_API_TIMEOUT=5s. This is upstream behaviour, not a pack defect, but enforce-audience is a behaviour change for anyone using HashiCorp Vault TriggerAuthentication (mode: legacy restores the old behaviour). The README's [!CAUTION] at README.md:59-60 points at the KEDA changelog generically; calling this out by name would be more useful.
  • New metricsServer.registerAPIService gate. 2.21.0 changes metrics-server/apiservice.yaml from {{- if .Values.metricsServer.enabled }} to {{- if and .Values.metricsServer.enabled .Values.metricsServer.registerAPIService }}. The pack carries the upstream default true, so behaviour is unchanged — just flagging that disabling it silently removes the v1beta1.external.metrics.k8s.io APIService that README.md:121 tells users to check for.
  • Image tags are not pinned. charts.keda.image.{keda,metricsApiServer,webhooks}.tag are all "", i.e. resolved from appVersion. That is upstream's default and it happens to produce exactly the 2.21.0 tags declared in pack.content.images today, 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:30 documents it correctly). On edge/airgapped clusters Always means a registry round-trip on every pod start; IfNotPresent is the usual choice for packs. Flagging for a deliberate decision rather than inheriting it.
  • The scaledjobs.keda.sh CRD 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-byte kubectl.kubernetes.io/last-applied-configuration annotation. It will, however, fail if anyone ever applies these manifests with client-side kubectl apply. Just so it is on the record if a support case ever mentions metadata.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 registerAPIService gate, 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.

This branch has not been deployed

No deployments
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