Skip to main content
On-premises
  • Configuration reference: Qodo Helm chart 7.32.1, product 3.0.
This guide walks you through deploying the Qodo platform on Kubernetes using the Helm chart. Before installing, prepare the cluster and external dependencies. For more information, see Infrastructure requirements. Before deploying, configure the bundled model gateway and matching application settings. For more information, see Configure the AI gateway.
PostgreSQL prerequisite correction: the shipped base values expect an external PostgreSQL server. The bundled server is opt-in: set postgres.enabled: true and global.externalDatabase.host: qodo-postgres. See Infrastructure requirements.
To collect application metrics with your monitoring stack, follow the configuration and verification steps. For more information, see Monitor Qodo with Prometheus and Grafana. To select storage classes, size datastore claims, or use an existing Gitway claim, prepare the storage overlay before installing. For more information, see Configure persistent storage. To connect existing cluster operators, follow the configuration and verification steps for each integration. For more information, see Autoscale Qodo with KEDA and Manage Qodo secrets with External Secrets Operator. Start with your environment values, then select the scaling, secrets, and network overlays you need. For more information, see Configure Kubernetes add-ons with values files and Configure ingress. If a Git provider, identity provider, or external AI endpoint uses a private CA, prepare the custom-ca-cert Secret before installing. The Secret extends the application trust stores and preserves their public roots. For more information, see Private certificate authority. If you pull images or the chart from Artifactory, configure the repositories and Artifactory pull Secret before installing. For more information, see Pull Qodo images and Helm charts through JFrog Artifactory. For GitOps deployment, use the dedicated profile and Application policy. For more information, see Deploy Qodo with Argo CD. For a complete list of Helm values and configuration options, see the Helm chart configuration reference. By default, this chart installs the Qodo platform into one Kubernetes namespace: the web portal, the API, the code-review agents, the code-intelligence engine, the git gateway, and their supporting datastores. Configuration is two values files: The complete list of values you can set is Helm chart configuration reference. The downloadable values files match the chart version listed above.

Optional component namespaces

Set global.namespaces.<component> to place a component in another namespace. Leave an entry empty to use the Helm release namespace. Each component has its own entry in Helm chart configuration reference. Components can share a namespace.
This remains one installation and one Helm release. The release namespace owns setup Jobs and canonical credentials. The onboarding maintenance CronJob follows the Platform component. Internal addresses use the destination component’s namespace. External hostnames and the identity issuer retain their configured values. Before installing:
  1. Create the release namespace and every configured component namespace.
  2. Grant the installer access to the rendered resource kinds in each namespace.
  3. Permit the required service, DNS, identity, Git provider, and model traffic.
  4. Check each OpenShift project’s security constraints and assigned user/group ranges.
  5. Provide TLS certificates for each namespace that contains an Ingress.
The chart places Services, workloads, configuration, storage claims, and namespace-local access rules together. It splits Ingress rules by backend namespace and places OpenShift Routes beside their backend Services. OpenShift Routes continue to use router-managed certificates and edge termination. Explicit namespaces on custom objects are retained. Raw custom object templates must declare their target namespace. Generated shared credentials have identical values in each consuming namespace. Only runtime identity fields leave the setup namespace; provisioning tokens stay there. Direct Helm installations can copy referenced prerequisite Secrets and Ingress TLS Secrets from the release namespace. The installer needs read access to those sources. Existing externally managed destination Secrets retain their owner. The chart updates only copies that this Helm release already owns. Shared application credentials follow active component references. Keep external replicas synchronized with canonical credentials. With cert-manager issuer annotations, cert-manager owns TLS data; the chart never copies the control certificate into another namespace. Before transferring an existing Helm-owned TLS copy to cert-manager, retain it through helm.sh/resource-policy: keep using its approved resource owner. The chart rejects that ownership change until retention is configured. This prevents certificate replacement or deletion during the handoff. Manual TLS copies update only during Helm operations; ensure their certificates cover all destination hosts and include every namespace in renewal procedures. After a TLS ownership handoff, use revisions that retain the new owner. An older Helm revision can contain certificate snapshots. Plan rollback with the certificate owner instead of restoring that older revision automatically. Offline rendering and Argo CD require an external Secret owner to provide matching credentials in each consumer namespace. Keep replicas synchronized during rotation. This includes the optional private-CA Secret custom-ca-cert: without a copy in a component namespace, that component starts without the private CA and its TLS connections to private-CA services fail. Keep namespace assignments stable after installation. Helm rejects a changed layout when it can read the installed revision. Namespace changes require a planned migration, including persistent data, credentials, queues, and rollback. Argo CD operators must enforce the same rule before syncing; the pre phase of argocd-upgrade-check.py reports NO-GO when the desired state moves an installed workload. Allow every target namespace in the Application’s project and inspect resource tracking before pruning. Run qodo-check.sh with the same values files before and after installation. Its additional namespace check verifies access, workload placement, and required configuration references. It needs Helm and Python with PyYAML. Healthy resources do not prove login, webhooks, reviews, or access isolation. The optional telemetry sender currently observes one product namespace. Keep telemetry.enabled: false when product components use several namespaces. The chart rejects that unsupported combination. A sender placed in its own namespace can still observe an otherwise single-namespace installation. Use customer monitoring across component namespaces until an aggregate sender is released. For OpenShift projects that require explicit Pod IDs, configure each component’s podSecurityContext with its project’s permitted user and group ranges. Set global.jobPodSecurityContext for setup Jobs in the release namespace. Keep only common security fields in global.podSecurityContext; global fields override component fields. Platform maintenance uses the Platform context.
These are example IDs, not customer defaults. Configure other components for their own projects. Where SCC admission assigns IDs, leave explicit IDs unset.

Separate upstream traffic farms and workload namespaces

An upstream F5 traffic split can use the existing OpenShift Routes while all components remain in one namespace. Namespace separation is an independent decision. Publish only the webhook paths the selected Git provider needs. Exclude unused /webhook and /gerrit-webhooks paths from the upstream allowlist. The intended Bitbucket path is gateway → message broker → review worker. The gateway handles integration; the review worker still runs reviews. Keep standalone PoV review Routes outside the production target. Verify the chart-managed webhook path, integration credentials, settings, and completed reviews before moving traffic. Retire legacy Routes only in the customer’s approved change window. Route names alone do not establish which legacy handler or path is in use. Separate Routes do not enforce access isolation. Check F5 and OpenShift rules for permitted sources, hosts, paths, methods, and alternative access paths. Prevent clients from bypassing F5 through router addresses or other published endpoints. Preserve pod access to the configured authentication issuer. F5 operation without WAF does not mean OpenShift TLS passthrough. The chart’s OpenShift Routes terminate TLS at the router and forward HTTP. No NetworkPolicy is installed by this chart. Any proposed network policy needs customer review and testing with the cluster’s network plugin. Test permitted traffic and denied human access before approving the architecture.

Where the chart comes from

Install directly from the licensed Qodo OCI registry. Helm downloads the chart when you run an install, upgrade, or render command. You do not need a local chart directory or a separate helm pull command. Authenticate once per machine:
Enter your Qodo license ID at the password prompt. The licensed chart supplies the image-pull credentials for its workloads. Set the chart version to match the configuration reference for this page:
Download the matching base values. Helm reads -f files from your machine:
Keep this base file unchanged. Put your configuration in my-values.yaml. For an upgrade, check the version offered by your licensed channel:
Set QODO_CHART_VERSION to your target version and download its matching base values before installing. Keep your customer values. Values downloads follow documentation releases. If your target version has no published download, request its matching values files from Qodo. For an air-gapped installation, ask Qodo for an offline bundle and image inventory. Use the offline bundle procedure below. The registry commands on this page require access to the chart registry.

1. Prerequisites

Prepare your cluster and external dependencies before installing. For more information, see Infrastructure requirements. If Qodo supplied a readiness kit, follow its READINESS.md and run its qodo-check.sh before and after installation.
  • Kubernetes 1.25+ and Helm 3, with a namespace you can install into.
  • An ingress controller (any: ingress-nginx, GCE, Traefik, …) and a DNS record you control — see step 2.
  • PostgreSQL: Prepare an external server with pgvector and the qodo-db-admin Secret by default. The bundled server is opt-in: set postgres.enabled: true and global.externalDatabase.host: qodo-postgres. See step 5 for both configurations.
  • A StorageClass that provisions PersistentVolumes (ReadWriteOnce is enough). Gitway, Redis, and RabbitMQ each request a claim; bundled PostgreSQL adds one when enabled. If your cluster has no dynamic provisioning, see Clusters without persistent volumes.
  • Credentials Qodo issued you for the image registry.
  • One identity provider for single sign-on (step 3): commercial Entra, GCC High (or another sovereign Microsoft cloud), Ping Identity, Okta, or Google Workspace. Each is a different global.entra entity — do not mix their fields.
  • An LLM endpoint: an OpenAI-compatible URL and API key. It may be your own gateway; no outbound access to api.openai.com is required if you provide one.

2. DNS and TLS

Pick a base domain, e.g. qodo.example.com. The chart derives these public hosts by default: One wildcard DNS record *.<baseDomain> pointing at your ingress controller covers all defaults, and one wildcard certificate covers them in TLS. Set a complete hostname override when an existing certificate or Kubernetes Gateway listener only covers another DNS level. Every generated Ingress route, OIDC issuer, portal URL, platform URL and CORS origin follows the same override. The six resolved hostnames must remain distinct because they route / to different services. Two things are easy to get wrong here:
  • The resolved auth hostname must resolve from inside the cluster too. Pods validate sign-on tokens against that public OIDC issuer, so a record that only exists on your corporate DNS, or a split-horizon setup that resolves it differently inside, will fail after login rather than at install time.
  • The webhook host must be reachable by whatever calls it. If your git provider is cloud-hosted, git.<baseDomain> needs to be reachable from the internet. You can serve webhooks on the base domain itself instead of a subdomain — set global.ingress.gitHostname — but the host you choose is also the URL handed to the provider when hooks are registered, so it must resolve and be covered by the certificate from the caller’s point of view.
  • The SDK host defaults to sdk.<baseDomain>. If your DNS or certificate policy requires a different hostname, set global.ingress.sdkHostname; both the QAR Ingress route and the platform’s DYNACONF_SDK__BASE_URL are derived from that one value.

TLS between the ingress controller and Qodo (optional)

By default, TLS ends at your ingress controller and the Qodo Services receive plain HTTP inside the cluster. Most installations keep this default. Use the values-backend-tls.yaml layer only if your ingress controller must open a new TLS connection to the backend (“re-encrypt”), for example VMware NSX ncp/ssl-mode: reencrypt or ingress-nginx backend-protocol: HTTPS. The layer adds a TLS proxy container to the five workloads the Ingress routes to (portal, platform, sign-on, agent runtime, webhook receiver) and an https port (8443) to their Services. The proxy forwards to the application inside the pod. The existing http ports and the traffic between Qodo services do not change. The layer needs Kubernetes 1.30 or newer and the chart Ingress. It does not change OpenShift Routes or Gateway API HTTPRoutes. The chart refuses the switch in step 2 with the GKE (GCE) ingress controller and the GKE ingress values, because that controller would send plain HTTP to the TLS port. Enable it in two steps, so that you can check each one. Step 1: add the proxy. Create a TLS Secret named qodo-backend-tls in the Qodo namespace. The certificate must be valid for the names your ingress controller checks, for example qodo-platform.<namespace>.svc:
If you use component namespaces, create the same Secret in every namespace that runs one of the five workloads. Then download the backend TLS layer for your selected chart version:
Add values-backend-tls.yaml after onprem-base.yaml and before your customer values:
The five workloads restart with the proxy. The Ingress still uses the http ports, so traffic is not affected. Check that the proxies are ready:
Each Deployment must be fully ready and list a tls-proxy container. Each Service must show port 8443. Step 2: switch the Ingress. In your own values file, send the Ingress to the https ports and set your controller’s re-encrypt annotation in the same change. The switch alone does not make the controller use TLS:
Run the same helm upgrade command again. Only the Ingress changes; no pod restarts. To go back, remove these values and upgrade again. If you manage your own Ingress or routes (global.ingress.enabled: false), do step 1 only and point your routes at port 8443 of each Service. Know these limits before you enable it:
  • A pod is ready only when its proxy is ready. If the Secret is missing or the certificate is not valid, the new pods do not start and the rollout stops. The old pods continue to serve.
  • The proxy reloads a renewed certificate from the Secret. A pod restart is not necessary.
  • When a platform pod stops, requests through the proxy that are still running after 60 seconds are cut.
  • The proxy forwards requests to the application over HTTP/1.1. A native gRPC client cannot call the sign-on API through the proxy.
  • To use a proxy other than the one that ships with the chart, override the tls-proxy sidecar and its ConfigMap in your values file. The header of values-backend-tls.yaml lists what your proxy must do.

3. Identity provider (Entra, GCC High, Ping, Okta, or Google Workspace)

global.entra is one provider. Choose one entity and use only that entity’s fields: Do not mix them: commercial Entra needs tenantId and must not set a sovereign or generic OIDC issuerUrl. GCC High, Ping Identity, Okta, and Google Workspace use generic-oidc, while their issuers and mapping choices remain provider-specific. Confirm <issuerUrl>/.well-known/openid-configuration for every generic OIDC provider. Register both callback URIs on every application (Secret contract is the same):
Do not reuse the same provider name when changing connector types: Zitadel refuses to replace an existing native Entra provider with a generic OIDC provider of the same name.

Commercial Entra (type: entra)

In Microsoft Entra admin center → App registrations → New registration:
  1. Note the Application (client) ID and Directory (tenant) ID.
  2. Create a client secret and copy its value.
  3. Add both Redirect URIs above (type Web).
Register both. The sign-on service uses the first one; the second is required by its API. Registering only /idps/callback looks correct and fails at login with AADSTS50011: The redirect URI ... does not match the redirect URIs configured for the application.
If you manage app registrations with the Azure CLI, note that az ad app update --web-redirect-uris replaces the entire list — read the existing URIs first and write them all back, or you will silently drop them. Define an Entra app role with the case-sensitive value Qodo-Platform-Admin; users assigned that role become Qodo organization owners, while users with any other or missing role remain regular users. If your app registration already uses another administrator role value, set global.entra.adminRoleName to match it exactly.

GCC High (type: generic-oidc)

A sovereign Microsoft tenant cannot use the native entra connector: that path always derives login.microsoftonline.com. Use generic OIDC and the exact GCC High issuer. Keep userClaimsSource: id_token — GCC High tokens are Entra-shaped (given_name / family_name). Leave tenantId empty.
Confirm discovery at that issuer uses GCC High authorization, token, and JWKS hosts (login.microsoftonline.us), not commercial login.microsoftonline.com.

Ping Identity (type: generic-oidc)

The Qodo on-prem portal supports PingOne through Zitadel’s existing generic OIDC connector; no Ping-specific runtime component is required. Other Ping products must expose equivalent standard OIDC endpoints and claims. In PingOne, create and enable an OIDC web application. Use response type Code, grant type Authorization Code, and token endpoint authentication Client Secret Basic. Grant the intended users or groups access, allow the openid profile email scopes, include email, given_name, and family_name in the ID token, and register both callback URIs listed above. Use the environment’s exact issuer URL and leave tenantId empty:

Google Workspace (type: generic-oidc)

Fresh installations only. This procedure configures Google Workspace for a new Qodo and Zitadel installation. Switching an existing installation from another identity provider is an identity migration and account-linking project; that migration is not covered here.
Create the OAuth application in a Google Cloud project owned by the Google Workspace organization that should access Qodo:
  1. Open Google Cloud Console → Google Auth Platform → Audience and confirm the user type is Internal. This is the access boundary: do not rely on the optional hd request parameter or claim.
  2. Open Google Auth Platform → Clients, create an OAuth 2.0 Client ID, and choose Web application.
  3. Add both resolved callback URIs:
  4. Copy the public client ID. Deliver the client secret through the customer-approved Kubernetes secret manager; never place it in this values file.
  5. In Admin Console → Security → Access and data control → API controls → Third-party app access, a Workspace administrator locates the OAuth app by its client ID and sets an access status permitted by the customer’s policy. This is not domain-wide delegation, and the Admin Console does not create the OAuth client.
Google’s issuer is global and exact: https://accounts.google.com. Leave tenantId empty and map claims from the ID token:
Before opening Qodo to users, test one managed Workspace account twice and one account outside the Workspace:
  1. The managed account must reach Qodo.
  2. A fresh second login must reuse the same Qodo/Zitadel identity.
  3. The outside account must be rejected by Google before Qodo creates a user.
Troubleshooting:
  • missing provisioning Secret: create the Secret in the Helm release namespace, ensure its name exactly matches global.entra.existingSecret, and ensure its key is exactly IDP_CLIENT_SECRET.
  • invalid_client: verify that the client ID and Kubernetes Secret belong to the same Google OAuth client without printing the secret.
  • redirect mismatch: compare both registered callback URIs exactly.
  • an outside account reaches Qodo: stop rollout and change the Google OAuth audience to Internal.
  • a duplicate user appears on the second login: stop rollout and investigate issuer/subject identity continuity.
  • administrator controls are missing after promotion: sign out and obtain a fresh session, then verify the promoted email and workspace ID onprem-workspace.

Okta (type: generic-oidc)

Same generic OIDC connector as GCC High, different entity: Okta org authorization-server ID tokens typically have name and email, not given_name / family_name. With mapping on, Zitadel Login V1 only reads those given/family claims and shows a first/last-name form. Set userClaimsSource to userinfo so Zitadel uses the userinfo endpoint. Pin a qodo-platform image that honors IDP_USER_CLAIMS_SOURCE. Do not set tenantId.
https://<org>.okta.com is the org authorization server. A custom authorization server uses a different issuer, for example https://<org>.okta.com/oauth2/default — pick one and use it consistently.

Bootstrap a generic OIDC administrator

The Ping and Google configurations above do not provide the Entra application-role claim. Their users therefore start as regular members. After the intended owner signs in once, promote only that user:
Sign out and sign in again to obtain a fresh session with administrator access.

Session lifetimes after a user is blocked

Zitadel asks the identity provider only when a user signs in. Token refreshes never reach it. So when you block or disable a user at the identity provider, Qodo stops them when one of these happens:
  • SCIM provisioning deactivates the Zitadel user (Entra: about 40 minutes, or immediately with “Provision on demand”), and their current token expires.
  • Their refresh token reaches its idle or absolute limit.
global.entra.sessionLifetimes sets those limits on the Zitadel instance: Durations are a whole number with s, m or h. Set a value to "" to leave the Zitadel instance’s current setting alone. With Zitadel’s own defaults (12h tokens, 30-day idle and 90-day absolute refresh), a user blocked without SCIM can keep working for up to 90 days. Enable SCIM for every identity provider that supports it. The provisioning Job applies these values on every install and upgrade. On an existing install, tokens issued before the upgrade keep the lifetime they were issued with. These limits need a platform image whose provisioner supports them (qodo-platform PRs #6192 and #6193). With an older platform image, the Job applies tokenLifetime to Zitadel’s access token only, not to the ID token the API checks, and leaves both refresh limits at the instance’s current values. Nothing fails, so check the result after upgrading: GET /admin/v1/settings/oidc on Zitadel should report idTokenLifetime, refreshTokenIdleExpiration and refreshTokenExpiration matching each value you set. A value set to "" keeps reporting the instance’s existing duration.

Multiple identity providers

Repeat the registration steps for every entity (commercial Entra, GCC High, Ping Identity, Okta). Give every provider a unique, stable display name, register both callback URIs in every application, and use the same administrator app-role value across tenants: Qodo has one global.entra.adminRoleName setting for the shared installation. Multi-IdP credentials use a different, secret-only contract. Create one Kubernetes Secret whose DYNACONF_ZITADEL_PROVISION__EXTERNAL_IDPS key contains the complete Dynaconf TOML list. Every { ... } entry must stay on one logical line:
List entries are per entity, same rules as the table above: commercial Entra uses type="entra" (no user_claims_source); GCC High uses type="generic-oidc" with the login.microsoftonline.us issuer (source defaults to id_token); Ping Identity uses type="generic-oidc" with its environment issuer and user_claims_source="id_token"; Okta uses type="generic-oidc" with the Okta issuer and user_claims_source="userinfo". global.entra.userClaimsSource is only wired for the single-provider Job when type is generic-oidc (IDP_USER_CLAIMS_SOURCE). Native entra does not get that env. Prefer creating that value through your Vault, External Secrets, CSI, or other approved secret manager so the completed list never enters shell history. The list must include every provider the provisioner should manage. Omitted providers remain in Zitadel until an operator removes them manually. Provider names are Zitadel’s idempotency keys: renaming one creates another provider. Select list mode in values and leave the legacy fields empty:
Updating only this Secret does not start a new provisioning Job. After adding or removing a provider, or after rotating a client secret through Vault, External Secrets, CSI, or another secret manager, wait for the Kubernetes Secret to contain the new list and then re-run the same helm upgrade --install command used for the installation. The new Helm release revision starts the provisioner, applies the provider changes in Zitadel, and rolls the platform to read the refreshed configuration. The rotation is not active until that upgrade completes. The chart refuses list mode together with any legacy name, clientId, tenantId, or issuerUrl. On a one-to-many upgrade, remove those four fields from your customer values file, keep the existing provider’s name and credentials in the new list, and do not delete qodo-zitadel-generated. The provisioner preserves that Secret, clears the old direct-provider pin, and the chart rolls the platform after provisioning so the provider picker takes effect.

4. Create the Secrets

Create the Secrets required by the infrastructure choices below. Credentials never belong in a values file. The licensed OCI chart creates its image-pull Secrets. For a customer registry, follow Pull Qodo images and Helm charts through JFrog Artifactory.
Use Vault, External Secrets, CSI, or another approved secret manager instead when available. Whichever method you use, the resulting Secret name must match global.entra.existingSecret and its key must be IDP_CLIENT_SECRET. The command above intentionally fails if the Secret already exists; update an existing Secret through your approved secret manager instead of storing its manifest in a client-side-apply annotation. Qodo Telemetry is optional and disabled by default. Qodo supplies the signed offline identity tool with its verification and enrollment guide. After Qodo approves your public identity, create the customer-owned signing Secret from the three files. This step is the same for direct and Replicated installs:
The chart mounts the files read-only. Keep the private key out of Helm values. Allow outbound HTTPS to https://listener.qodo.ai for network sends, then opt in:
automatic sends at startup, on a bounded heartbeat, and after meaningful health changes. on-demand sends only through the local operator API. file makes no receiver requests and allows a local unsigned JSON report download; it needs only a valid public installation ID. Missing or invalid identity does not block the product install. Air-gapped installations should keep telemetry disabled unless an approved local file-only procedure is in place. To inspect the exact bounded payload, last attempt, and last successful send, port-forward the sender locally. These endpoints have no Service or Ingress and reject non-loopback clients:

Private certificate authority (optional)

For detailed setup and verification, see Private certificate authority. Set this up when your git provider (GitLab EE / GitHub Enterprise / Bitbucket Server), LLM endpoint, or IdP presents a certificate signed by a private CA. The bundled LLM gateway (qodo-litellm) reads it too, so a private-CA model endpoint or a TLS-inspecting egress proxy in front of it is trusted. Create the Secret custom-ca-cert with your CA certificates only. The public roots are already in the images and are kept:
Every key in the Secret is appended, so a chain can be supplied as several files (--from-file=root.pem=... --from-file=intermediate.pem=...). Each value must be PEM certificate material; a DER/.crt binary appended to the bundle silently breaks trust for the whole file. The Secret is optional and read at pod startup by the ca-builder init container, which concatenates it onto the image’s own /etc/ssl/certs/ca-certificates.crt in an emptyDir that every application container then mounts over that path. No Secret means the system bundle is used unchanged. These restart examples affect every Deployment in the namespace. Use them only in a dedicated Qodo namespace. For a shared namespace, follow the scoped procedure in the private certificate authority guide linked above. Two consequences worth knowing:
  • Create it before installing. Kubernetes does not restart pods when a Secret appears or changes, so adding or rotating certificates afterwards needs kubectl rollout restart deployment -n "$NAMESPACE" (and the chart cannot roll them for you. It never reads the Secret’s contents).
  • Deployments are not the whole story. rollout restart deployment does not touch the qodo-sync-installations CronJob. Each new sync Job reads the Secret as it starts, so scheduled runs pick up new certificates on their own. But a Job already running keeps the bundle it built at startup, for as long as it runs. That is harmless when adding a CA. When retiring one, prefer to let the active run finish: it ends on its own, and the next scheduled run rebuilds the bundle from the updated Secret with no further action.
    Deleting an in-flight sync Job is not free. The sync marks each installation it is working on as in-progress in qodo-platform and clears the mark when it finishes; killing the pod leaves those marks set, and later runs skip the affected installations until the platform’s own stale-claim reset expires them. Repository sync for those installations is delayed until then — it does not resume on the next schedule. If the old CA must stop being trusted immediately and you accept that delay, delete the Job and then confirm sync recovers rather than assuming it did:
    If that run reports installations skipped as in-progress, wait for the stale-claim reset and re-check; if it is still skipping after that, contact Qodo support with those logs rather than deleting further Jobs.
  • Trust is extended, not replaced. Supplying a full bundle that includes public roots still works but duplicates them; supplying only your private CA is correct and sufficient.
Do not pre-create qodo-db-admin on the bundled-PostgreSQL path. The chart renders that Secret as part of the Helm release; an existing Secret without Helm ownership metadata makes install fail with invalid ownership metadata. The exception is the fully pre-provisioned mode global.generatedSecrets.render=false, where you must create every Secret in the generated-credentials inventory before install.
Everything else the platform needs is generated on first install and kept across upgrades. On platform 2.182.0 and later, Zitadel provisioning also creates one scim-<provider-slug> machine user per configured provider and checkpoints its one-time PAT as SCIM_PAT_<PROVIDER_SLUG> in qodo-zitadel-generated. Keep that Secret backed up and access-restricted; runtime workloads consume only its OIDC keys, not those PATs.

5. Database

Bundled PostgreSQL is opt-in: enabling it starts Postgres with pgvector, on a persistent volume sized by postgres.statefulSets.volumeClaimTemplates[0].spec.resources.requests.storage (20Gi), creating the application databases it needs. Select the bundled server with the values below; with global.generatedSecrets.render=true, Helm creates qodo-db-admin itself:
Both halves are needed: postgres.enabled runs the server, and global.externalDatabase.* is how every component finds it — including the migration Jobs, which is why existingSecret cannot be empty. The key is named externalDatabase because it identifies the server used by every workload. The default configuration keeps postgres.enabled: false and requires an external server.

External PostgreSQL (default)

Keep postgres.enabled: false and set global.externalDatabase.host, existingSecret (the qodo-db-admin Secret from step 4), and adminUser:
The install creates its own databases, so that user needs CREATEDB. require prevents plaintext connections, but does not authenticate the database certificate or hostname; verified TLS modes and custom database CA plumbing are not yet exposed by this chart. Set adminUser explicitly. It defaults to postgres, which most managed database services do not offer — on Google Cloud SQL the equivalent is the user you created with the cloudsqlsuperuser role, on Amazon RDS the master user. Leaving the default in place fails part-way through the install, in a setup job, rather than up front. Use an empty database or instance. The install creates databases named zitadel, litegit, rag_db, qodo_merge and qodo_rules; if objects with those names already exist and are owned by a different user, the setup jobs will fail on permissions. pgvector must be creatable, not merely installed. Two of those databases (rag_db and qodo_rules) hold embeddings and need the vector extension inside them — extensions are per-database, so one does not cover the other. Managed services usually make creating this particular extension superuser-only: on Amazon RDS it needs rds_superuser, which the install user should not have. The extension being available on the server is not enough. If your user cannot create it, have an admin run this once, before installing. The databases must be owned by the configured adminUser, not by the privileged operator running these commands (replace qodo_admin below with that exact role name):
The install detects this and stops with the same instructions rather than failing later inside a migration.

Clusters without persistent volumes

If your cluster cannot provision PersistentVolumes, download the evaluation overlay for your selected chart version:
Add values-emptydir.yaml after your customer values on every install and upgrade.
It moves all four datastores onto node-local emptyDir storage, so the install needs no StorageClass and creates no PVCs.
This destroys data. An emptyDir lives and dies with its pod. Any restart, eviction, node drain, or helm upgrade that rolls a pod wipes that component — the databases included. Verified, not theoretical: deleting the Postgres pod took the database count from 10 back to 5 and dropped a test table. Use it for a short-lived evaluation, never for an environment whose data matters, and expect to re-run onboarding after any restart.
Switching to real volumes later means a reinstall, not an upgrade: drop the extra -f and reinstall into a clean namespace. Pass it on EVERY upgrade, not just the install. Values files are not remembered between helm upgrade runs, so omitting this -f later asks the chart to move the datastores back onto PersistentVolumes. That upgrade fails part-way, and the failure is not self-healing:
Kubernetes rejects changes to StatefulSet claim templates atomically. On the current Gitway HA chart, the backend is also a StatefulSet; restore the correct values-emptydir.yaml overlay and retry the upgrade. Inspect the last successful Helm revision and the StatefulSet’s live volumes before any further repair. Do not delete the canonical qodo-gitway Deployment: it runs Envoy, not the cache. Do not delete datastore claims as part of a Gitway cache repair. Legacy singleton charts only: older chart versions can partially patch the Gitway backend Deployment to mount a standalone qodo-gitway-repo-store PVC that cannot bind without a provisioner. Reapplying the correct overlay can leave that stray volume when Helm compares against its last successful manifest. Only after confirming there is no qodo-gitway StatefulSet and that the Deployment is the legacy backend, remove that Deployment and its orphaned cache claim, then repeat the upgrade with all three values files:
This legacy claim holds a disposable repository cache. It is unrelated to the current HA per-ordinal claims and to durable datastore volumes.

Only if you bring your own Redis

The chart runs Redis in-cluster by default, without a password, with a 1 GiB maxmemory limit inside a 2 GiB container. The remaining memory provides headroom for connections, allocator overhead and persistence; Redis can use more process memory than maxmemory. Size both limits together if overriding redis.statefulSets.command or redis.statefulSets.resources, and monitor memory and evictions under your workload. The allkeys-lru eviction policy remains enabled, so this capacity increase does not guarantee session retention. Persistence can fork Redis and increase peak memory through copy-on-write. The 1 GiB headroom is not a bound on peak RSS: validate persistence under peak write load and increase the container budget or lower maxmemory if needed. To point at a managed instance (ElastiCache, Memorystore):
If that instance requires a password, create a Secret and name it — no extra -f layer, no other change:
Every component that talks to Redis picks it up from there. Any password works — @, /, :, # and spaces included; each component URL-encodes it.

6. Write your values file

For a new installation, start the durable customer values file with:
In an unpacked bundle, values-new-install.yaml is also available at the top level. See Rules and Skills import for its behavior. The starter also replaces Zitadel’s upstream default human-admin password with an instance-specific password stored in qodo-zitadel-secrets/ZITADEL_INITIAL_ADMIN_PASSWORD. Direct Helm generates it once and reuses the stored value on upgrades. The Secret reference is required; Zitadel cannot start if the key is missing. Keep this starter configuration in that installation’s values. It affects only the first initialization of a fresh Zitadel database; it does not rotate or disable existing administrator accounts. For existing installations, keep their existing values file. For a new Argo CD installation, generate a unique password of at least 32 characters with lower/uppercase letters, a digit and a symbol, and persist it under that same key through your external Secret owner before the first sync. Run verify-external-secrets.py --context "$KUBE_CONTEXT" --namespace "$NAMESPACE" --require-zitadel-bootstrap before syncing. Do not put the password in values or Git, or reuse another instance’s password. If the bundle contains a worked values-example.yaml, add its environment settings to the new file; otherwise use values-customer-template.yaml as a reference and add the settings you need. Merge settings into existing mappings to preserve the starter’s platform.env entry; do not append duplicate YAML keys or replace the file. For example, add this global block:
Together with the starter, that is a complete file — the database is in-cluster and needs nothing. To use your own database server instead, add the block from step 5:

Rules and Skills import

The shared chart default for FEATURE_FLAG_ONBOARD_REPOS stays false to preserve existing installations during upgrades. Existing installations keep their current values file and skip the starter initialization in section 6. For new installations, the starter saves true in the customer-owned values file. Reuse that file on later upgrades, including Argo CD syncs, to retain the chosen value. New installations that use other values files or workflows without the starter stay disabled until explicitly configured. The workspace must also have rules_import.enabled=false; an import starts only when requested. This flag does not change saved import policy or existing rules. To explicitly disable availability, set this entry in your values file:
After rollout, feature evaluation may retain the preceding value for up to five minutes while its cache expires.

Rules embedding dimensions

The standard setup remains unchanged, with a default rule embedding dimension of 1024. Only override it for a model that requires different settings, using the same configuration on the API and event consumer. For example, native Nomic v1 produces 768 values and does not accept a request dimension parameter:
The migration Job inherits these three settings from platform.env. ConfigMap or Secret references are supported on fresh installs when the referenced resources are available. On upgrades, use literal value entries for these settings: the pre-upgrade migration runs before Helm updates ConfigMaps and Secrets, so the chart rejects valueFrom entries to prevent stale settings. Register the selected model in your LLM gateway and use platform images that support configurable rule embedding dimensions. Set the dimension before the dimension migration first runs. Changing it later does not resize the database automatically; existing incompatible vectors need a migration and regeneration plan. Back up the database before changing models.

PR history embedding dimensions

PR history stores embeddings in rag_db with a default dimension of 2000. Only override it for an embedding model that returns a different size, for example Amazon Titan Text Embeddings V2, which returns at most 1024 values. Set the same literal on all three engine workloads, and keep the embedding request size equal to it:
The engine migration Job creates the rag_db vector columns from the engine-indexer value, even when the indexer itself is disabled. The chart rejects values that differ across the three workloads (an unset value counts as the default 2000), values that are not a positive whole number, and valueFrom entries, because the migration runs before Helm updates ConfigMaps and Secrets. Set the dimension before PR history is first indexed. The migration only creates missing tables, so changing the value later does not resize them. To change it on an existing install, scale the three engine workloads to zero, then in rag_db empty the PR history tables and resize both vector columns before upgrading:
PR history is then re-indexed from scratch.

Optional per-user GitHub repository access

Account linking, access calculation and enforcement are separate steps. Use a Qodo-provided Platform release supporting on-prem account linking and configure the customer OAuth App first. The installed GitHub App must also have the permissions needed to read repository and organization membership. Start calculation without changing visibility:
This starts the internal access worker and enables the API and Git event consumer publishers against the existing message broker and database; it creates no new database or migration. With a compatible Platform release, both account links and installation-created/repositories-added events trigger calculation. For a self-hosted GitHub server, ensure the API’s configured GitHub host matches the linked accounts and installations. Existing links need a supported backfill or another link/sign-in trigger; starting a consumer alone does not compute them. Once the worker is ready and a linked user’s access map is verified, set global.repositoryAccess.filteringEnabled: true. Unlinked users, including administrators, cannot see private repositories on the configured GitHub host. Disabling enforcement restores unfiltered reads. Queue naming and rollout settings are documented under global.repositoryAccess in Helm chart configuration reference.

7. Install

Install the selected chart version directly from the registry:

Offline bundle installation

Use this procedure only with an offline bundle supplied by Qodo. Transfer the bundle and its complete image inventory to your offline environment first. Use the mirrored image references and registry settings supplied with the bundle. After creating your namespace and the application Secrets in step 4, create the image-pull Secret with credentials for your mirror registry:
Keep the qodo-pull name. Install the chart package supplied in the bundle:
Use your bundle’s actual chart and values filenames. For a single-values bundle, pass its supplied customer values file. Follow the bundle’s INSTALL.md for its image mirror configuration and any additional prerequisites. Order matters: the second -f wins where the two overlap. $NAMESPACE is the one you set in step 4 — the Secrets have to live in the same namespace as the release. Any namespace works; pick whatever fits your cluster conventions. The examples use qodo as the Helm release name. A fresh Argo CD install can use a unique matching Application and Helm release name, as described in the Argo CD section below. Preserve the release name when upgrading an existing installation. Resource names keep their fixed qodo- prefix regardless of release name. Dedicate every target namespace to one installation. Components from that installation can share a target namespace. First install takes several minutes: setup jobs prepare the databases and configure sign-on before the applications become ready.

Pulling the images from your own registry

Skip this unless you mirror images internally. By default every image comes from Qodo’s registry using the pull Secret from step 4. It takes one value. Mirror the images listed under “Images in this chart version” in Helm chart configuration reference — keeping the repository path and tag identical, only the registry host changes — then set:
Do not hand-write the image list: it is generated from a full render of this chart version, so it includes the ones referenced only from inside templates and cannot drift from the pins.
Then confirm nothing was missed — this must print nothing:
Run that check. A partial mirror still installs cleanly: Helm accepts it, and the images you missed fail minutes later as ImagePullBackOff, in a pod event that does not mention your values file. The qodo-pull Secret must carry credentials for your registry once you do this.

Confining Qodo to particular nodes

Skip this unless Qodo has to run on specific nodes. By default every pod is pinned to x86-64 nodes — the only architecture the images are built for — and placed anywhere else your scheduler chooses. Three values apply to every workload, the setup Jobs included:
A nodeSelector is an AND of its entries, so adding one label narrows placement rather than replacing the architecture pin. A toleration only permits scheduling onto a tainted node — it does not keep pods off the other nodes, so pair it with the selector. If the setup Jobs need to land somewhere the applications do not, add global.jobScheduling.nodeSelector / .tolerations; those are applied on top of the values above rather than instead of them. Check placement before opening traffic — every pod should be on a node you expect, and none should be stuck Pending:
A pod that stays Pending with didn't match Pod's node affinity/selector in kubectl describe means no node carries every label you set.

Clusters that require pods to declare their IDs

Skip this unless your cluster rejects pods that do not name a user or group — most commonly OpenShift, where a restricted SCC admits a pod only if the IDs it names fall inside the range assigned to your namespace. Two values apply to every workload, including the setup Jobs that run before the applications start:
Read the admissible range from your own namespace rather than copying the numbers above:
The two are separate values because Kubernetes splits the fields: fsGroup and supplementalGroups are Pod-only, while allowPrivilegeEscalation, readOnlyRootFilesystem and capabilities are container-only. Setting either in the wrong place is rejected by the API server. Both are empty by default, and a component that ships its own setting keeps it. On OpenShift you will also be publishing through Routes rather than an Ingress — see global.route in Helm chart configuration reference.

8. Verify

Then browse to the resolved portal URL (https://app.<baseDomain> by default, or https://<global.ingress.appHostname> when overridden), choose SSO (Single Sign-On), and sign in with your Entra ID account. Your user is created automatically on first login.

Gerrit repositories over SSH

After signing in, open Integrations → Gerrit. Enter the Gerrit server base URL (including any deployment context, but not its authenticated /a prefix) and service account’s HTTP credentials. Configure the authenticated API path separately (default /a), then choose SSH for Git transport. Set the hostname and port reachable from the Qodo services, the SSH username, and the unencrypted private key whose public key is registered in Gerrit. Saved private keys and HTTP passwords stay hidden and can be rotated online. Use Fetch host keys, compare the displayed SHA256 fingerprints with your Gerrit administrator, and confirm the keys. You can also paste trusted known_hosts entries. Test the connection before saving. Connection settings are also available from the installation row’s actions menu. SSH is used for Git clone/fetch operations. Gerrit REST calls still require HTTP credentials, and the wizard supplies the webhook URL for the server’s webhook plugin. Keep server-host-key verification enabled. These credentials are connection settings in Qodo; do not put private keys into chart values.

Gateway usage and attribution logs

The bundled gateway emits one litellm_usage JSON record per inference by default. Records include model, status, token counts, latency and available caller tags. Records exclude prompt and response content. Merge forwards user, workspace, PR, command and request tags. The user tag is the triggering sender identifier, which can be a provider login or email address. Context-aware Engine paths forward their available workload/request tags. Calls without that context still produce usage records. QAR’s current direct-model path does not add these attribution tags. Disable the records with:
An existing litellm.usageLogging.enabled override keeps precedence. Remove that legacy override to use the public setting above. Usage logging is independent of global.tracing.enabled; it does not enable Phoenix or the Collector. Values-only logging changes roll the gateway through its config checksum. Caller tagging is controlled separately. Set global.merge.settings.CONFIG__QODO_LLM_GATEWAY_METADATA_TAGS: "false" to omit Merge tags, or set AI_GATEWAY__SEND_TAGS.value: "false" under an Engine alias’s env map. On-prem routes through the bundled AI gateway proxy; the standalone Engine image retains its direct-provider-safe default. The local Compose stack uses an operator-supplied gateway and keeps that gateway’s logging policy.

Troubleshooting

Pods stuck in ImagePullBackOff: Run kubectl describe pod <pod> -n <namespace> and inspect the referenced imagePullSecrets. The licensed OCI chart creates these Secrets. Check your license and registry access. For a customer registry, verify the configured pull Secret and its registry credentials. The ingress never gets an address — with the GCE ingress controller, ask Qodo for the additional values layer it requires; container-native load balancing needs annotations this chart does not apply by default. On other controllers, check that global.ingress.className matches an IngressClass that exists (kubectl get ingressclass). Setup jobs fail with a permissions or role error — almost always global.externalDatabase.adminUser: see step 5. Login fails with AADSTS50011 — a Redirect URI is missing from the app registration: see step 3, and note that both are required. The portal loads but stays on a spinner — check that the pods are ready and that the resolved portal API hostname (portal-api.<baseDomain> or global.ingress.portalApiHostname) resolves and is covered by the certificate; the portal calls it from the browser. A review pod restarts every few minutes and reviews never finish — read the restart reason before treating it as a crash or a failed health check, because those look identical from kubectl get pods:
Reason: OOMKilled with Exit Code: 137 means the container hit its memory limit, not a bug. The queue worker reserves 10Gi per replica, while the HTTP agentic-review endpoint requests 4Gi with an 8Gi limit. Very large diffs or a long global.merge.settings metadata list can still exceed those limits. If both entry points serve reviews in your installation, raise both aliases so the outcome does not depend on which one handled the review:
Each container reserves its requests.memory, so multiply by replicaCount before raising it. Six queue-worker containers at 10Gi reserve 60Gi; with the default 1Gi analytics sidecar in every pod, the six replicas reserve 66Gi of schedulable memory. Pods stay Pending if the nodes cannot satisfy that. A pod is Pending with unbound immediate PersistentVolumeClaims — on a cluster without volume provisioning, this is usually an upgrade that omitted values-emptydir.yaml; see “Clusters without persistent volumes” in step 5 for the recovery, which Helm cannot perform on its own. Something else — collect kubectl get pods -n <namespace>, kubectl describe ingress -n <namespace>, and the logs of the failing pod, and contact Qodo support.

RabbitMQ disk sizing

The new-install starter values-new-install.yaml requests 16Gi for RabbitMQ; its RAM remains 2Gi. The base chart retains its 8Gi storage default so existing upgrades do not change the immutable StatefulSet claim template. Keep your existing values on upgrades; do not replace them with the new-install starter. A normal upgrade needs no storage migration, including on StorageClasses that cannot expand volumes. Monitor free space, disk alarms and queue backlog: 16Gi is a starting size, not a guarantee against disk exhaustion. Helm replaces claim-template lists when applying later values layers. If a storage-class overlay repeats the RabbitMQ claim, preserve its selected size: 16Gi for a starter-based new installation, or the existing size for an upgrade. An 8Gi example applied last overrides the new-install starter’s 16Gi request. If the broker disk is full, recover it before retrying migration hooks. Do not delete its PVC/WAL data or use --no-hooks as a routine upgrade procedure. Changing a values-file request alone does not expand an existing PVC. For an optional expansion, the storage owner must first confirm that both the StorageClass (allowVolumeExpansion: true) and its CSI driver support expansion, including any required filesystem restart. When supported, pause concurrent Helm/Argo CD reconciliation, save the StatefulSet manifest, resize the existing PVC, and verify actual filesystem capacity and broker health. Only then, if updating the claim template, orphan the controller while retaining its pod/PVC. Set KUBE_CONTEXT to the approved context and NAMESPACE to the existing release namespace. Set RABBITMQ_STATEFULSET to the installed controller name from the saved manifest. The default is qodo-rabbitmq; an existing rabbitmq.fullnameOverride can change it. Keep that name and the PVC names unchanged during expansion. The command rejects unset or empty target variables:
Immediately run the normal Helm upgrade (same explicit context/namespace) or Argo CD sync, with hooks enabled and the new claim size in the existing values. For Helm, add --kube-context "$KUBE_CONTEXT" and --namespace "$NAMESPACE" to the normal upgrade command. Do not rely on the current kubeconfig context. Verify controller adoption, unchanged PVC/PV identity and queued messages before resuming reconciliation. If interrupted while the controller is absent, restore its saved manifest or finish the upgrade; never apply an old template over a recreated controller. Expanded volumes cannot be shrunk on rollback. If expansion is unsupported, do not run this procedure: keep the existing size for upgrades and have the storage owner qualify a backed-up migration to a new volume when more capacity is required.

Upgrades

Replace onprem-base.yaml with the new version, keep your own values file, and re-run the same helm upgrade --install command. Your file is never overwritten by an upgrade. RabbitMQ image changes to 4.2.9-management-alpine-qodo.1. RabbitMQ remains at 4.2.9. This qualified image includes the zlib security fix. An existing copy of 4.2.9-management-alpine retains its historical contents. For air-gapped or self-mirrored installs, mirror the new tag before upgrading and verify it is pullable with the cluster’s credentials. Otherwise the broker can enter ImagePullBackOff and dependent workloads wait for RabbitMQ. This patch also selects Redis 7.4.12-alpine-qodo.1 and pgvector 0.8.7-pg16-trixie-qodo.2. Mirror all three qualified replacements before upgrading an air-gapped or self-mirrored installation. For the complete source references, see Helm chart configuration reference. Preserve the previous image tags for rollback. Do not replace their contents. The pgvector image changes to 0.8.7-pg16-trixie-qodo.3 and the Envoy image to v1.40.2-qodo.2. PostgreSQL stays at 16, pgvector at 0.8.7 and Envoy at 1.40.2. Both images include the Debian glibc security update. Your values file needs no change. The glibc release stays at 2.41 and its locale data is unchanged, so PostgreSQL collation versions do not change. The bundled PostgreSQL needs no REINDEX and no ALTER DATABASE ... REFRESH COLLATION VERSION. An external PostgreSQL server does not use this image. For air-gapped or self-mirrored installs, mirror both new tags before upgrading and verify that the cluster can pull them. Preserve the previous image tags for rollback. With the default root entrypoint, the Alpine broker runs as UID 100 (previously 999). Its first start changes ownership of /var/lib/rabbitmq, including the Erlang cookie, before dropping privileges. If your security settings start the container as root and drop CHOWN, retain that capability for the ownership change, along with the capabilities needed to drop privileges. The volume must also permit ownership changes. Alternatively, keep an explicit non-root runAsUser that already owns the broker files and can read the cookie; do not switch arbitrarily to another UID. Existing installs that keep the same explicit non-root UID do not need an ownership change. The storage and RabbitMQ-version upgrade precautions below still apply. This release moves LiteGit to 0.317.1 and Agent Runtime to 1.32.0. These images fix Critical and High vulnerabilities. Your values file needs no change.
  • The LiteGit migration Job adds one database column before the new pods start. After it runs, older LiteGit images do not start against the database. To roll back, restore the database backup (see the rollback notes below).
  • LiteGit now rejects a qodo-svc- key that is not in its accepted list (LITEGIT_SERVICE_KEYS) with HTTP 401. The chart registers the keys of its own services. If you send your own qodo-svc- key to LiteGit, ask Qodo to add that key before you upgrade.

Upgrading from before 7.24: migrate CA certificates

Since 7.24, global.caBundle is removed. Private CA trust uses the optional Secret custom-ca-cert. The chart rejects a nonempty old value during rendering, before upgrade hooks can run. A hook cannot migrate that value or create the Secret before rendering. Complete this migration before the normal upgrade. Installations without the old value need no CA migration. The chart package includes migrate-ca-bundle.py. It requires Python 3.9+ and PyYAML in your approved Python environment. Preparation reads values and writes private files. It does not change the cluster, original values, or running Pods.
  1. Obtain migrate-ca-bundle.py for your target chart version from Qodo. Save it beside your downloaded base values and customer values.
  2. Prepare the migration from every customer values file, in its original order:
    Supply the complete customer configuration. Repeat -f for additional customer override files. Exclude the old Qodo base file; the upgrade uses the new chart’s base file separately. Preparation clears the old CA input from every layer. A shared YAML merge uses a null override without changing the other branches. Later values retain precedence. Original files remain available for rollback. The output directory must be new and outside Git checkouts and the chart. It has mode 0700; output files have mode 0600. Values can contain credentials. Keep these files in approved private storage. Supply only approved private CA certificates with --ca-file. Repeat that flag for a CA chain. The images retain their public roots. The helper checks PEM syntax and CA type. It rejects endpoint certificates, private keys, and other material. It cannot identify private roots inside a complete legacy bundle or verify an endpoint’s trust. If the original CA files are unavailable, obtain them from the certificate owner. For an approved recovery that must retain the complete old trust set, replace --ca-file with --preserve-legacy-bundle. This explicit exception also retains old public roots. Review that trust policy with the certificate owner; it is not the standard private CA migration. If the old value exists only in Helm’s retained release configuration, add --release "$RELEASE" --context <customer-context>. This reads helm get values without --all and recovers only the legacy CA input. It requires Helm and read access. It never exports retained deployment settings: Helm merges old base settings and customer overrides, so replaying them can override new chart settings. Continue to supply every approved customer override file. If those files are unavailable, recover the configuration with Qodo support before upgrading. The helper cannot reconstruct those separate sources. The retained CA value is authoritative over obsolete local CA values, including when a previous --set or --set-file changed the deployed CA. An explicitly empty retained value stays empty. Recovery with --preserve-legacy-bundle stops if the release has no legacy CA key. Approved --ca-file inputs still select the replacement certificates explicitly. The output names its certificate source.
  3. Review the prepared values-N.yaml files and certificate selection.
  4. Create the Secret before starting the normal upgrade:
    This requires kubectl and an explicit context. It creates only custom-ca-cert. If that Secret contains the same certificates, it makes no change. Different certificates stop the command. Have the approved Secret owner reconcile them, then retry. The helper never overwrites or adopts an existing Secret. If Vault or another controller owns the Secret, use that owner to publish the prepared certificates before retrying. Secret keys must be visible filenames. The CA builder ignores keys that start with a dot; the helper stops if it finds them. If the effective old value is empty and you supply no CA files, preparation creates no Secret manifest. Skip this step and preserve any existing custom-ca-cert Secret.
  5. Run the normal upgrade with the new chart’s base values and every prepared file in numeric order. For one input file, use:
    Add -f for each remaining values-N.yaml. Retain other approved deployment options. Use --reset-values to clear the old retained key. Do not use --reuse-values or --reset-then-reuse-values. Keep using the migrated configuration for later upgrades. Do not restore an old values layer.
For Argo CD or another GitOps controller, use offline preparation with -f. Update its authoritative values and Secret source before syncing the new chart. The CA Secret must exist before the first migration Job or application Pod. Do not place a plaintext Secret manifest or credential-bearing values in Git. Keep the existing Argo CD upgrade checks and sync ordering. After the upgrade, confirm that the CA builders and migration Jobs completed. Verify sign-in and an actual Git provider operation against private CA endpoints. If model traffic uses a private CA, verify that route too; the bundled LLM gateway builds its trust bundle from the same Secret. Keep the old values and database backups for the normal rollback procedure. Do not delete the CA Secret as an automatic rollback action. The trust store is now extended rather than replaced, so the old completeness requirement is gone: a bundle holding only your private CA used to break every public-endpoint call, and is now the correct input. Pods pick the certificates up at startup via the ca-builder init container, so later rotations need kubectl rollout restart deployment -n "$NAMESPACE" — the previous automatic roll on bundle change is retired, because the chart no longer reads the certificate material and cannot checksum it. That command covers Deployments only: new qodo-sync-installations and qodo-platform-release-onboarding-candidates Jobs build the trust bundle from the Secret when they start, but an already-running one keeps its startup bundle. Prefer waiting for that run to finish — deleting it mid-flight leaves installations marked in-progress and delays their sync until the platform’s stale-claim reset (see Private certificate authority in section 4).

Other upgrade precautions

This release moves the datastore images (RabbitMQ 3.13 → 4.2.9, Redis, Postgres/pgvector and Zitadel base refreshes), which replaces those pods on upgrade — except under updateStrategy: OnDelete (the emptyDir overlay’s default for RabbitMQ and Redis in some profiles), where the new images start only when you delete the pods deliberately.
  • RabbitMQ 3.13 → 4.2.9. Upstream supports upgrading a 3.13 data directory directly to 4.2.x only (4.3+ requires stepping through 4.2, and a 3.13 broker with Khepri enabled cannot upgrade in place at all; this chart never enables Khepri). Enable all stable feature flags on the running 3.13 broker first: rabbitmqctl enable_feature_flag all. The chart’s single-node broker also enables required flags automatically at boot.
  • Ephemeral storage loses data at replacement. With the emptyDir overlay, all four datastores (RabbitMQ, Redis, bundled Postgres, Zitadel’s backing tables in it) hold pod-lifetime data: queued and dead-letter messages, sessions and — on evaluation installs with bundled Postgres — the databases themselves do not survive this upgrade. Check the broker is drained before proceeding: kubectl -n <namespace> exec qodo-rabbitmq-0 -- rabbitmqctl list_queues -p / name messages_ready messages_unacknowledged and let in-flight reviews finish (or accept the loss) when any count is non-zero. Under OnDelete, schedule the pod deletions in the same window.
  • Bundled Postgres moves from a Debian 12 to a Debian 13 base (glibc 2.36 → 2.41). On a persistent data directory the recorded collation versions go stale, which makes every CREATE DATABASE fail against template1 — the bundled server now refreshes the recorded versions and the vector extension itself at startup. What it cannot do for you: rebuild indexes. Run REINDEX DATABASE <db>; per database after the upgrade to re-sort text indexes under the new glibc. BYO external databases are unaffected by this image change.
  • Zitadel v4.20 is built with Go 1.26.10. Outbound TLS (SMTP, external IdPs, Actions/webhook targets, HTTP SMS) no longer accepts certificate chains through the compromised eMudhra intermediate CAs — affected endpoints need a new certificate; this cannot be disabled. Go 1.26 also rejects URLs with invalid colons in the host and offers post-quantum hybrid key exchange by default, which some TLS-inspecting proxies mishandle; GODEBUG=urlstrictcolons=0 or GODEBUG=tlssecpmlkem=0 restores the old behavior while those are fixed. Users mid-way through a device authorization re-enter the user code once after the upgrade.
  • The bundled identity service now uses a distroless runtime. It has no shell or package manager. The certificate builder uses the owned utilities image and keeps the existing custom certificate mount. Use that helper or another approved maintenance image for shell-based diagnostics.
  • Bundled identity containers now disable privilege escalation and drop all Linux capabilities. This applies to the identity service, token writer, certificate builder and database readiness helper. The pod defaults to non-root UID/GID 1000. Set global.podSecurityContext or zitadel.podSecurityContext when a cluster requires namespace-specific IDs. The containers inherit those pod IDs unless an operator explicitly supplies container-level overrides. Before upgrading custom startup commands, check their capability requirements. For a required exception, use zitadel.deployments.podSecurityContext for the service/token writer or the certificate builder’s securityContext in zitadel.deployments.initContainers. Preserve the complete initialization container list when overriding it. Existing global.containerSecurityContext settings retain precedence over these component settings.
Database migrations gate upgrades. After the RabbitMQ topology check, db-init and the enabled application migration Jobs run as pre-upgrade hooks. A failed hook stops the upgrade before Helm updates application Deployments. Existing pods remain on the previous version; inspect the failed Job and correct the cause before retrying. These hooks use the existing database and credential Secrets; do not rotate or rename those Secrets in the same upgrade. On a first install, migration Jobs remain ordinary resources because generated Secrets and bundled PostgreSQL are not yet available. If an upgrade is intended to enable bundled PostgreSQL for the first time or repair an unavailable database, the pre-upgrade migrations cannot run against it. Do not bypass the hooks with --no-hooks: that can roll new application images onto an unmigrated database. Restore database availability first, or contact Qodo support for a staged migration and data-transfer plan. Switching to a newly enabled bundled PostgreSQL Service in one upgrade is rejected before any resources change. Offline helm template --is-upgrade cannot verify that Service; use helm upgrade --dry-run=server to preview an existing installation. The revisioned qodo-merge-migrate-* Job applies PR-Agent database changes. The review worker and agentic endpoint wait in wait-for-schema until their image’s Alembic head matches the qodo_merge database; the init container reads alembic_version directly (it never invokes Alembic’s database-creating startup path) and never runs migrations. Use --wait --wait-for-jobs --timeout 30m for upgrades so Helm reports a failed migration or a pod stuck waiting for it. Inspect the migration Job logs before retrying; changing the Deployment image alone does not start the Job. Upgrading into PR Agent 3.49.0 requires a review write pause. Its one-time 070_backfill_dropped_findings migration moves existing suppressed findings into a separate table. Before starting this upgrade, gate webhook and direct review intake, suspend scheduled producers, and drain accepted review and agentic work while LiteGit remains reachable. Record the replica counts, then stop both review writers, even if the RabbitMQ topology is already current: For Argo CD, first disable automated sync, self-heal and pruning in the authoritative Application or ApplicationSet template. Confirm the generated Application has those settings disabled and no running or queued operation before scaling: otherwise reconciliation can restart a writer during migration.
Wait for both Deployments’ old Pods, including terminating Pods, to disappear before running Helm or syncing Argo CD. Keep the authoritative replica counts in the supplied values; the full upgrade or Application sync restores target writers after the schema Jobs. The topology hook alone is not a writer-stop mechanism when conversion is a no-op. Do not use a normal overlapping review-worker rollout for this schema transition. For Argo CD, commit and refresh the new revision only after the writers have stopped. Run the pre check in “Check before and after every Argo CD sync”, perform a full manual Application sync, wait for the schema Jobs and workloads, then require a successful post check before reopening intake and restoring automation. Keep the target replica counts in values so that full sync restores the writers after the schema Jobs. Migration 070 preserves suppressed rows without a workspace in findings. If a legacy-data import assigns their workspace IDs after 070, a reviewed forward reconciliation must move the newly eligible rows before accepting the upgrade; rerunning Helm at the same Alembic head does not repeat the backfill. Validate original finding IDs and payloads across both findings and dropped_findings, and require no eligible suppressed row left in findings. Do not delete retained rows or stamp the schema backwards to force a rerun. Stateless application Deployments keep their existing pods available until a replacement is ready (maxSurge: 1, maxUnavailable: 0). Request-serving workloads use readiness probes to gate that handoff. This preserves the Deployment’s desired available replica count, including for a single replica; it does not establish uninterrupted requests during endpoint propagation or application shutdown. Reserve capacity for at least one additional pod per Deployment being updated: several services can roll at the same time. Terminating pods also retain resources until shutdown completes and are not counted by maxSurge, so allow room for draining pods as well. If a replacement cannot be scheduled or does not become ready, the rollout waits with the old pods still serving. Old and new images and database schemas must remain backward-compatible while they overlap. QAR retains its schema-aware startup gate and the same zero-unavailable, one-surge strategy. These defaults do not remove the schema-specific write pause described above. Platform, Portal, LiteGit, AI gateway, the Engine indexer/retriever and the agentic review service also wait 15 seconds in a preStop hook before stopping their server. This gives Service endpoint updates time to reach the network while the retiring pod can still accept requests. Their termination grace period is 45 seconds for Portal, LiteGit, AI gateway and the Engine services. Platform and the agentic review service instead get 915 seconds: the 15-second hook plus a full 900-second application shutdown budget. Platform waits 30 seconds after SIGTERM before closing its listeners (app.shutdown.pre_stop_drain_seconds), then allows up to 840 seconds for in-flight requests and a 30-second margin. The agentic endpoint needs its 870-second Gunicorn review/reporting window plus a 30-second margin. QAR retains its application-specific drain hook and shutdown budget. Increase the pod budget if you increase the application’s own shutdown timeout; the hook consumes part of the total budget. Long-running reviews can extend rollout duration, so allow enough upgrade timeout for the configured replica count and drains. No failures were observed in HTTP probes of those seven components during subsequent development-cluster rollouts with their hooks installed. These probes did not cover public ingress or complete user workflows. Zitadel’s login/OIDC paths were not probed. QAR readiness and the review worker’s health sidecar still returned errors during replacement; successful QAR liveness probes do not prove that in-flight agent requests or queued reviews survive. Verify the actual login, agent and review workflows through your ingress before relying on request continuity for those components. An existing pod keeps the lifecycle configuration it was created with. The first upgrade from an older chart therefore cannot retroactively give its retiring pods this drain hook; brief connection gaps can still occur during that transition. If the first adoption must avoid request failures too, use a reviewed staged traffic handoff or a maintenance plan. Verify the transition and subsequent rollouts through the actual ingress or load balancer. Gitway is the exception: its repository cache uses a single ReadWriteOnce PVC, so it retains maxSurge: 0, maxUnavailable: 1 and a single-replica rollout still interrupts Git access. Enabling overlapping pods requires independent per-pod caches; changing only the strategy can stall on volume attachment or make two processes use the same cache. Helm reporting deployed does not by itself prove every rollout or migration finished; verify the Deployment and Job statuses.

Override a component’s rollout

Set <component>.deployments.deployStrategy at the top level of your own values file, alongside global. Each component is independent; omitted components keep their defaults. Use the chart alias from this table, even when the running Deployment has a different name: For example, keep Platform available while replacing one pod at a time, and give the Portal a separate no-surge policy:
Copy the block under another stateless component’s values key from the table to override that component. Keep Gitway’s no-surge policy while it mounts the shared repository-cache PVC; do not copy the overlapping-pod example to gitway. replicaCount is a sibling of deployments. Optional components still need their existing enablement setting; a strategy override does not enable them. These Deployment settings do not apply to the bundled PostgreSQL, Redis or RabbitMQ StatefulSets, or to migration Jobs. If you deliberately choose type: Recreate, also set deployments.deployStrategy.rollingUpdate: null under that component to clear the inherited rolling settings. Recreate stops existing pods before starting their replacements and interrupts a single-replica service. maxSurge limits extra pods above the desired replica count; maxUnavailable limits how many desired replicas may be unavailable during replacement. Use integers for a fixed pod count, or quoted percentages such as "25%". At least one must be greater than zero. The Portal example saves surge capacity but interrupts a single-replica Portal; keep maxUnavailable: 0 when availability is required. Retain Gitway’s existing no-surge policy until its storage topology supports independent per-pod caches. For Helm, keep the usual values order: -f onprem-base.yaml -f my-values.yaml. If overrides live in a separate file, append -f rollout-overrides.yaml after your customer file. For Argo CD, put the same entries in your customer values file, or list rollout-overrides.yaml after it and before values-argocd.yaml in spec.source.helm.valueFiles (or the corresponding Helm entry in spec.sources). The last file wins for overlapping keys. To return to the chart defaults, remove the override keys and apply the normal upgrade or full Application sync. Upgrade compatibility: Helm 3’s --reuse-values also retains the previous chart’s defaults. Upgrading from 7.20.5 that way can retain maxSurge: 0, maxUnavailable: 1 and omit the new drain hooks and shutdown budgets. Use the normal upgrade with the new chart’s onprem-base.yaml and your customer values file. Stored release values include the old base file as well as customer overrides, so use the explicit files in their documented order to replace the base while keeping your customer settings. See Helm’s upgrade options. The new schema requires an integer shutdown budget: replace quoted values such as podTerminationGracePeriodSeconds: "60" or --set-string with podTerminationGracePeriodSeconds: 60 or ordinary --set. If a component already supplies a non-exec preStop handler, clear the inherited deployments.lifecycle.preStop.exec: null when keeping httpGet or sleep. Otherwise Helm merges both handlers and validation rejects the upgrade before changing any resources. HTTP hooks require a port from 1 through 65535 or a named container port. Native sleep hooks require integer seconds and Kubernetes 1.30 or newer; zero seconds requires Kubernetes 1.33 or newer. tcpSocket is unsupported for lifecycle hooks; use exec, httpGet or sleep instead. See the Kubernetes lifecycle handler reference. For an HTTP component with the default drain hook, its delay is configured at <component>.deployments.lifecycle.preStop.exec.command, and its total shutdown budget at <component>.podTerminationGracePeriodSeconds. For example:
Include the drain delay in the total grace period. A shorter grace period can force the server to exit before its active requests finish. Keep QAR’s application-specific hook when overriding its strategy. Before application workloads change, the chart checks the three persisted LiteGit workflow queues. RabbitMQ cannot change queue type or delivery arguments in place, while the independently released Platform, Engine and qodo-git images do not all adopt the bounded quorum contract in the same release. The chart therefore carries the topology supported by each pinned client: it migrates a queue to quorum only when that consumer supports bounded redelivery, and keeps an older consumer’s queue classic until its image moves. Engine queue topology follows the effective PR-knowledge consumer image, not an independently overridden indexer. Qualified Engine 2.92.0, 2.96.0 and 2.96.1 use the SSH-capable SDK’s bounded subscription for vcs-events.pr-knowledge, even though it retains its older queue package. The hook drains and converts a retained classic queue, preserves existing dead letters and bindings, then keeps the incompatible old consumer paused until Helm applies the new image. A retained global.images.engine-pr-kn-consumer.tag: 2.91.1 or overriding engine-pr-kn-consumer.image.tag: 2.91.1 keeps a classic Engine queue unchanged, including its backlog. That legacy image is refused if the queue is already quorum; the hook never downgrades a converted queue. Keep the qualified newer image on an already-migrated installation. Valid @sha256:<digest> suffixes do not change the version classification. Other/custom consumer tags fail rendering until their queue compatibility is qualified; use the qualified 2.91.1 (classic) or 2.92.0/2.96.0/2.96.1 (bounded) selection. Retain this hook when adopting the new images, and keep all Engine image combinations under compatibility review. The default global.rabbitmqMigration.mode: automatic runs a guarded pre-upgrade hook. Accepted reviews still call LiteGit, so the hook drains active workflow queues while LiteGit remains available. For a busy installation, pause public webhook intake and scheduled producers first; internal LiteGit APIs must remain reachable until accepted reviews finish. Confirm both ready/in-flight deliveries and active review runs have settled. For an upgrade from a chart whose qodo-revision-roller Role cannot list pods, have the namespace administrator add apiGroups: [""], resources: ["pods"], verbs: ["list"] to that Role before migrating. The hook checks this permission before changing replicas; it needs to observe terminating pods, too. Fresh installs receive this read permission from the chart automatically. After draining, the hook stops LiteGit, waits until its pods are gone, and checks for deliveries that raced shutdown using two clean broker observations ten seconds apart after a ten-second statistics settling window. A race aborts before deleting any queue and restores the old replicas. It then stops affected consumers and replaces only queues RabbitMQ confirms are empty and unused. Compatible queues and existing dead letters are preserved. After conversion, incompatible old consumers stay paused: Helm applies their target images and configured replica counts after the schema migration Jobs. By default the publisher also waits for that apply. To resume webhook intake earlier, set global.rabbitmqMigration.resumePublisherAfterMigration: true only after rehearsing that the currently installed gateway and its dependencies remain compatible throughout every pending database migration. With this setting, the hook reads back the restored queue bindings, restores only the gateway’s original replicas and waits for its Deployment to be ready. Incompatible old consumers remain at zero. New events accumulate in the verified queues until Helm starts the target consumers after the schema Jobs. An originally stopped or absent gateway stays stopped. Before pausing, the hook snapshots all relevant bindings and requires an unscoped or pass-through route covering incoming events. Missing optional subscriptions, narrower custom routes or an oversized routing snapshot defer early recovery to the normal target apply without failing the upgrade. Reverification compares all saved bindings, including unchanged queues. A small qodo.ai/rabbitmq-publisher-recovery Deployment annotation retains the original positive publisher replica count and routing snapshot across failed hooks. A retry can recover that publisher even when topology is already current, without restarting old consumers. Successful recovery clears the annotation; stale markers from a different workload revision/image are discarded without scaling. Preserve the marker during forward repair; clear it deliberately if an operator intends to keep a previously interrupted publisher stopped. Ordinary compatible-topology upgrades without a recovery marker do not scale workloads. The opt-in adds its bounded 180-second publisher-readiness allowance to the hook Job deadline; retain the documented 30-minute Helm timeout for default settings, and account for a longer configured drain allowance in the maintenance budget. With this option, a Helm pre-upgrade Job runs after the schema Jobs and stamps only zero-replica consumers with no active or terminating Pods with the target revision and CA-bundle checksum. Helm then applies the target configuration and restores their replicas. The post-upgrade revision hook skips these fresh consumers, allowing the backlog to drain without a second restart. Running consumers retain their normal revision rollout. A preparation marker on Deployment metadata identifies its Helm upgrade attempt. Successful post-upgrade handling clears that marker without restarting fresh Pods; after an interrupted apply or rollback, a later attempt refreshes those consumers even if their version stamps already match the target. Preserve that marker through forward repair. This early-resumption option requires Helm; for Argo CD, keep it false and keep intake gated through the rollout. This option does not upgrade the gateway early or make database migrations reversible. If a later migration fails, retain the backlog and complete forward recovery; do not restart incompatible consumers. Providers receive a retryable failure while the publisher is stopped for queue conversion; ensure their retry window or a durable upstream buffer covers that interval. An independently managed ingress maintenance gate must be reopened explicitly after publisher recovery if early intake is intended. Keeping that gate closed prevents early intake regardless of this setting. Already-compatible installations skip the topology maintenance entirely. If draining exceeds global.rabbitmqMigration.drainTimeoutSeconds (default 600), the upgrade fails with LiteGit still available and no queue deleted. Failures before topology changes restore any recorded replicas. After the first queue deletion, failures keep incompatible old consumers paused. The publisher stays stopped until every converted queue and its bindings verify; when early resumption is enabled it may already be running if readiness or a later schema Job fails. Inspect publisher health and the retained Job, preserve queued work and complete the target upgrade; do not start old consumers against converted queues or roll back database revisions:
Clusters that require an operator-controlled maintenance procedure may set global.rabbitmqMigration.mode: validate. That mode is read-only and blocks the upgrade while any legacy queue remains; use it only with a migration plan provided by Qodo.

Argo CD / ApplicationSet (external PostgreSQL)

Ask Qodo for verify-external-secrets.py and argocd-upgrade-check.py from your selected release. Save them beside your values files. These checks do not require a local chart directory. Download the profile for the same chart version:
Argo CD runs helm template, not helm upgrade: it cannot use Kubernetes lookup to reuse live credentials, and .Release.Revision does not advance. Use the packaged values-argocd.yaml as the last values layer after onprem-base.yaml and your environment values. It selects global.deploymentMode: argocd and global.generatedSecrets.render: false. Do not put credentials in any values file or in Git. This mode requires a reachable external PostgreSQL server; bundled qodo-postgres is deliberately rejected because its pod starts after the database setup Jobs on a first sync. The external Secret controller (for example, External Secrets or a sealed- Secret workflow) must reconcile these fixed names and keys in the target namespace before Argo CD syncs Qodo. They are absent from the Argo CD chart render; changing their names in values does not repoint the consumers. The Platform bearer must equal qodo-svc-onprem- plus the preserved raw key; the allowlist must contain that bearer; LiteGit, Gitway, Engine, QAR, both review workers, and Platform read it from the same qodo-qodo-platform-api-key Secret. The TOML key must match it. The packaged preflight checks these invariants without displaying any credential:
Python 3.11+ is required. This checks the internal inventory above. The ordinary install prerequisites still apply separately: the image-pull Secret (qodo-pull on direct-registry installs), qodo-openai when using the bundled LLM gateway, the configured identity-provider Secret, and TLS as appropriate. qodo-engine-secrets-toml contains no credential and remains chart-rendered. qodo-zitadel-generated is written by the provisioner at runtime, not on a fresh first sync. An existing install must preserve it as well. The handoff preflight checks every required identity key used by Platform; an unrelated nonempty Secret does not pass. An empty IdP pin is valid for local login or a provider picker, but its key must remain present. For a Helm-to-Argo CD handoff:
  1. Preserve the existing Helm release name, namespace and customer values, and pin a reviewed chart version. Keep the values order onprem-base.yaml, customer file, values-argocd.yaml. If the customer file lives in another Git repository, use Argo CD multi-source $values/... for that middle entry. The Argo CD Application identity must be unique across controllers managing this cluster. For a fresh installation, choose a unique name for both the Application and helm.releaseName. For an existing Helm release, keep its release name; if an Application with that name already exists, have the controller owner configure separate resource tracking before adopting it. Argo CD’s default app.kubernetes.io/instance rewrite can otherwise break chart selectors, while reusing an Application identity can claim another installation’s tracked resources.
  2. Back up and import the existing bytes of every Secret above into the external Secret source, including Zitadel’s master key, LiteGit’s vault master key, and the database password. Preserve qodo-zitadel-generated. Never regenerate those keys against existing databases. Keep backup/export material only in approved encrypted Secret storage, never a values file, shell transcript, PR, or temporary render.
  3. Have the external controller reconcile first. Run the preflight above with --require-zitadel-generated; verify its output is green, and verify the old and newly managed Secret data are byte-identical in your Secret system. Do not delete and recreate a live Secret to transfer its ownership. If only the pr-agent TOML check fails, reconstruct that file from the existing Platform bearer in the Secret source; do not rotate the bearer or its allowlist to match a stale TOML copy.
  4. Freeze direct Helm upgrades. Start the ApplicationSet with automated pruning and self-heal off, inspect argocd app diff, and confirm Qodo’s credential Secrets are not in its desired manifest. Do not run helm uninstall: that deletes other live resources and is not an Argo CD adoption step. The old Helm release record can remain while Argo CD owns future reconciliation. Only one controller should write the workloads.
  5. Sync in a maintenance window if the chart or images move. Argo CD waits for the chart’s ordered Jobs: wave -3 prepares static prerequisites/RBAC and waits for bundled RabbitMQ and Redis to be healthy; wave -2 checks RabbitMQ topology and initializes databases; wave -1 runs migrations; wave 0 updates workloads and provisions Zitadel; PostSync stamps the revision. The RabbitMQ Job checks the running broker on both install and upgrade. Absent queues on a fresh broker need no migration; a missing publisher alone does not prove retained queues are absent. Completed Jobs have stable names for identical renders and remain present; a chart, values, or queue-script change gives them new names and reruns them. Replicated pull-credential rotation alone does not change those names. Use a full Application sync, not selective resource sync: Argo CD skips hooks during selective sync, including this chart’s PostSync revision roll. Also disable ApplyOutOfSyncOnly=true: the topology Job can pause a workload whose manifest was unchanged at the start of the sync. Later waves must apply every Deployment to restore its configured replicas; argocd-upgrade-check.py pre rejects this selective-apply policy.
  6. Check every migration Job and Deployment is healthy before enabling automatic sync/pruning. If you enable pruning, use PruneLast=true and keep the external Secret resources in their own Application/Secret controller with a deliberate retention policy. Never let pruning remove a credential the Qodo chart no longer renders. Before the first pruning sync, inspect the Application’s tracked resources and the dry-run deletion list:
    Every tracked namespaced resource and proposed deletion must belong to the intended installation. destination.namespace alone does not isolate resource tracking or limit pruning when Application identities collide. Stop and correct tracking if another namespace appears. Before enabling self-heal, tell the Application to ignore the annotations that Qodo’s provision/revision Jobs maintain (including preparation markers retained across a Helm handoff), and set RespectIgnoreDifferences=true:
    Without that policy, Argo CD can undo the Jobs’ pod restarts and repeatedly report drift. This Application policy belongs in the ApplicationSet, not in Helm values; validate it in the actual generated Application before turning on self-heal.
The first Argo CD sync also runs the PostSync revision roller. Newly installed Deployments have no revision stamp, so this causes one additional rollout after initial readiness. Wait for those rollouts to settle before acceptance checks. Later identical syncs retain the stamp and do not repeat that rollout. Set Platform rule embedding model, dimension and send-dimensions settings with literal platform.env.*.value entries in Argo CD mode. Their migration runs before workload ConfigMap and Secret updates, so valueFrom cannot safely supply these non-secret settings. Embedding API credentials remain Secret refs. If Secret bytes are unchanged, ownership handoff alone needs no pod restart. If an external Secret legitimately changes, environment variables and subPath TOML mounts do not refresh in running pods: coordinate a rollout of every consumer after updating the Secret. A changed Platform bearer affects Platform, LiteGit, Gitway, QAR, Engine and review workers together. The PostSync revision roller handles chart-version/CA changes, not external Secret rotation. Zitadel master, LiteGit vault and database credentials must not be rotated as a side effect of migration. The qodo-revision ConfigMap reports QODO_DEPLOYMENT_MODE=argocd, the actual chart version, and QODO_HELM_REVISION=0 (Argo CD has no Helm release revision). Use Argo CD’s Application history for sync revisions. The external credential source, Argo CD ApplicationSet policy, Secret retention, and tracking-label choice cannot be supplied by chart values alone. A direct Helm install remains the default; do not add the Argo CD layer to one. For a first Argo CD install, provision Secrets and the external PostgreSQL server before the first sync, then run the preflight without --require-zitadel-generated.

Check before and after every Argo CD sync

verify-external-secrets.py checks the Secret inventory; it cannot see whether the servers still accept those values. The checker uses the refreshed Application resource inventory to inspect every component namespace. It probes backing services in their actual namespaces and compares running credentials with canonical control Secrets. Grant read, exec, and log access in those namespaces. An unhealthy or missing moved workload, stale credentials, or an unreadable namespace produces NO-GO. argocd-upgrade-check.py checks the live state around a sync and never prints a credential: Set both names explicitly. For a fresh installation they match; a handoff keeps the existing Helm release name even if the Application has another name.
Run pre after changing the chart version and values and refreshing the Application. It reports NO-GO when:
  • an operation is running or queued, or automated sync is on;
  • the Application’s comparison is stale or failed, or its desired state contains a credential Secret;
  • a credential Secret is missing, or one that the Application tracks lacks Prune=false;
  • a running pod’s environment or mounted pr-agent TOML differs from its Secret;
  • RabbitMQ or the bundled LLM gateway rejects the Secret’s value;
  • Zitadel logs master-key decrypt errors or database login failures;
  • any of these checks cannot run (missing access, unreadable container, no running pods).
Before a first install nothing runs yet: use verify-external-secrets.py as the gate, and run pre --first-install, which skips the checks against running pods and servers. Run post after the sync. It repeats the Secret, running-pod and server checks. It also requires the sync to have succeeded at the expected chart version (or commit), every setup and migration Job of that revision to have succeeded, and every Deployment and StatefulSet to be fully rolled out.

Moving an Argo CD install off generatedSecrets.render: true

If Argo CD ever synced this chart with generatedSecrets.render: true, each render wrote new random internal credentials into the Secrets. Several things keep this hidden:
  • The diff doesn’t show it. ignoreDifferences on Secret data hides the change from the diff but not from the sync.
  • RespectIgnoreDifferences doesn’t stop it when it covers only /data, because the chart renders stringData.
  • The servers keep the old values. RabbitMQ keeps the password it stored on first boot. Zitadel’s master key encrypts its stored keys, and LiteGit’s vault key encrypts provider credentials, so the old values stay authoritative there.
  • Running pods keep working until they restart. An upgrade restarts all of them, and then RabbitMQ logins, Zitadel and Git integrations fail together.
Before the first sync with values-argocd.yaml:
  1. Turn off automated sync and make sure no operation is running.
  2. Run the pre check. If secrets.match_running_pods, rabbitmq.accepts_secret or zitadel.credentials fails, the Secrets no longer hold the values the servers use.
  3. Recover the original bytes from your own backup, or from the newest Helm release record in the namespace (sh.helm.release.v1.<release-name>.v<N>, written by the last direct helm install or helm upgrade). Put them back into the six generated credential Secrets and qodo-pr-agent-secrets-toml. Restore Zitadel’s master key and LiteGit’s vault key exactly: regenerating them loses the data they protect.
  4. The database setup Job resets the zitadel role’s password whenever it runs. If the role rejects the restored ZITADEL_DB_PASSWORD, set it from a database admin session with ALTER ROLE zitadel PASSWORD. If RabbitMQ rejects every candidate, set the broker to the Secret’s value with rabbitmqctl change_password qodo instead of generating a new one.
  5. Annotate the Secrets argocd.argoproj.io/sync-options: Prune=false and restart the Qodo Deployments so every pod reads the restored values. Repeat the pre check until it reports GO.
A rollback needs the same care: restore the database backup and the same Secret bytes, then sync the older version with values-argocd.yaml. Re-rendering an older chart with render: true writes yet another random set. Rolling back past the RabbitMQ 4.x upgrade needs a fresh broker volume: a data directory 4.x has upgraded does not start under 3.13. Queued messages are lost with the volume; the topology hook recreates the queue layout. Rolling back from 7.x to 6.x also needs a RabbitMQ step, because the 7.x topology migration converts the event queues on the broker’s own volume and a database restore does not touch it. Older consumers that declare classic queues fail against retained quorum queues with PRECONDITION_FAILED - inequivalent arg. The Engine queue is included once this release has converted it. Quorum queues in RabbitMQ 4.2.9 reject the --if-empty and --if-unused conditional-delete flags. A fully automatic downgrade cannot prove that external producers are quiesced, so queue removal requires an operator-approved maintenance window and the verified conditions below. Prefer forward repair while retaining compatible images and queued work whenever possible. Before syncing older classic-queue consumers, follow the approved image/database backup and rollback plan, preserve the broker routing definitions, and:
  1. Pause all external intake and scheduled producers. Keep the current gateway and consumers running until accepted reviews and indexing work finish.
  2. Require explicit numeric zero values for ready messages, unacknowledged messages and active work on each affected queue. Unknown, null or unavailable counters are not zero. Use rabbitmqctl list_queues name messages_ready messages_unacknowledged consumers.
  3. Stop qodo-litegit, wait for its Pods to disappear, then stop the affected qodo-git, qodo-git-event-consumer and qodo-engine-pr-kn-consumer Deployments and wait for their Pods to disappear. Allow broker statistics to settle and recheck explicit zero ready/unacknowledged messages and consumers. Stop if any publisher, consumer or counter remains unverified.
  4. Only after the operator confirms those maintenance conditions, remove the incompatible, empty workflow queues inside the broker:
These commands are unconditional. Never run them against a busy queue or remove unsupported flags from a failed request and retry automatically. Retain all dead-letter queues and exchanges. Older consumers recreate their classic workflow queues; restore any additional approved routing bindings and verify consumption before reopening intake. When rolling back only an older Engine image, apply the procedure only to its consumer and vcs-events.pr-knowledge; leave compatible workflow queues intact. Before retrying the upgrade after a rollback, delete the setup and migration Jobs of the version you rolled back from. Their names depend only on the chart and values, so a retry with the same chart reuses the completed Jobs, and the database and queue migrations would not run against the restored state. The pre check fails with jobs.will_run in this case and prints the exact kubectl delete job command.

Argo CD operations during an upgrade

  • Argo CD runs one operation per Application at a time. While a sync waits for an unhealthy resource, later sync requests queue behind it. Terminate the operation and wait for a terminal phase before syncing again.
  • Argo CD before 3.3.15, 3.4.9 and 3.5.3 can replay the previous result, without applying anything, when a sync is started by writing the Application’s operation field directly (scripts, kubectl patch). Syncs started from the Argo CD UI or CLI are not affected. This is argoproj/argo-cd#26530, fixed by #28778. After any scripted sync, check that the operation’s start time changed.
  • Do not use “apply only” (skip hooks) or a selective sync to get past a failing step. Both skip the RabbitMQ topology migration and the revision roll, so the workloads move to the new version without them.
  • If the RabbitMQ topology Job reports rejected user 'qodo' (HTTP 401), the password in qodo-rabbitmq-password does not match the broker. Fix the credential as described above; syncing again cannot.
  • Any chart or values change gives every setup and migration Job a new name, so all of them run again. The previous revision’s Jobs then show as “requires pruning”. Remove them with a pruning sync (PruneLast=true) once every tracked credential Secret carries Prune=false, or delete them by hand.

Azure SAML with Login V1

For a SAML enterprise application without Graph User.Read, see SAML-LOGIN-V1.md in your release bundle. It includes the platform release prerequisite, provider Secret, values overlay, claims mapping and Azure callback settings.

Gitway router and independent caches

Gitway now uses two backend StatefulSet replicas behind two Envoy routers. The canonical Deployment and Service retain their existing gitway selector. During the initial rolling transition, the old backend remains available until new Envoy Pods report a healthy upstream cluster. The router readiness probe checks /_gitway/readyz on port 8080. This local aggregate health filter requires at least one healthy backend, without forwarding the probe to a random backend. Four consecutive successful probes span at least one active backend health-check interval before a new router joins Service traffic. This is startup hysteresis, not a guarantee against future backend failures. The two controller selectors are distinct; the headless Service selects only the backend Pods. Clients retain qodo-gitway:8080; each backend requests 2 CPU and 4Gi memory, with a 4Gi memory limit and no CPU limit. Namespaces requiring CPU limits must provide a LimitRange or explicit backend, init-container and router limits. Before upgrading a singleton install, move gitway.deployments.* overrides to gitway.statefulSets.*, remove the old Deployment strategy and shared cache-volume overrides, and drain active Gitway work. Each ordinal now owns its cache. Caches start cold; Helm can delete the old standalone cache PVC, so archive or retain it before upgrading if rollback needs it. New StatefulSet cache claims are retained on workload removal. The published gitway.pvcs.repo-store sizing fields remain compatible: they size each private claim and never create a shared standalone PVC. Legacy sizing wins over the default claim template; remove it when adopting the new gitway.statefulSets.volumeClaimTemplates configuration. For node-local caches, apply values-emptydir.yaml after the customer values. It clears the backend claim templates and mounts one private emptyDir per pod; the cache is lost on pod replacement. Apply this whole-stack evaluation overlay only to installations already using that storage scheme. The routers and backends use a native 120s pre-stop delay and 155s termination grace to drain requests before application shutdown. Native sleep needs Kubernetes 1.30+ with the feature enabled. Termination grace must exceed the delay. The shipped delay covers the 90s route budget plus 20s pooled-connection lifetime, 5s drain and margin. On 1.27–1.29, explicitly set both gitway-router.deployments.lifecycle: null and gitway.statefulSets.lifecycle: null and use a maintenance window: router replacement without that delay can interrupt active requests. The revision hook initializes backend version bookkeeping on installation and after migration using workload metadata only. It does not restart Pods that just loaded the target ConfigMap. A later chart-version-only change still causes one backend rollout, which the hook waits for before returning success.