Containers

Upgrade Argo CD: What Helm 4 Breaks in Your Helm Apps

What does the jump from Argo CD 3.4 to 3.6 really do to Helm Applications? I wanted to know before I touched anything that matters, so I built a box full of awkward ones. Most of the upgrade notes are about Helm 4, which now renders every chart, and the short answer is that plain HTTP OCI registries break the moment you land on 3.5. A security fix that went out on all three lines rejects templated release names too.

Original content from computingforgeeks.com - post 199036

So I broke it on purpose. I moved one minor version at a time with the upstream manifests, kept every error, fixed each one, then repeated the whole path with the argo-cd Helm chart and the fixes applied first. I ran it on box1, a 4 vCPU Ubuntu 24.04.5 VM with k3s v1.37.2, going from Argo CD v3.4.14 through v3.4.15 and v3.5.9 to v3.6.3, and every prompt below comes from that box. Those three patches were still the newest on each line when I rechecked the release page in December 2026.

Knowing what breaks before you upgrade Argo CD

I’d have liked this table before I started, so it comes first. Each row is something that failed in my lab, the message Argo CD put on the Application, and the change that cleared it. Nothing here touched running workloads: every Deployment kept serving while its Application sat in Unknown.

HopWhat brokeError on the ApplicationFix
Latest 3.4 patchTemplated helm.releaseNameinvalid spec.source.helm.releaseNameUse the literal rendered name
3.4 to 3.5Chart pulled from a plain HTTP OCI reposerver gave HTTP response to HTTPS clientinsecureOCIForceHttp: "true" on the repo
3.4 to 3.5Git chart with an oci:// dependency on another pathSame error from helm dependency buildRegister the dependency path as its own repo
3.5 and laterinsecure and insecureOCIForceHttp on one repoSame error, with --plain-http in the commandDrop insecure
3.5 and laterhelm.version: v3Nothing, it is ignoredLeave it or delete it
3.5 to 3.6Nothing in my labAll SyncedRead the 3.6 notes for your setup

If your charts come from GitHub, Docker Hub or any registry with real TLS, the middle three rows do not apply to you and the upgrade is mostly the release-name check. If you run an internal registry:2, Harbor without TLS or a Zot on a lab subnet, read the whole thing.

Building a lab that could actually break

A clean install with the guestbook example would have upgraded fine and taught me nothing. I wanted the awkward cases, so box1 ran a single-node k3s cluster with three things beside Argo CD: a registry:2 on NodePort 30500 with no TLS, a Gitea holding chart source, and Argo CD itself installed from the manifests the way the Argo CD install guide does it.

kubectl get nodes -o wide

One node, k3s on the 1.37 line, Ubuntu 24.04 underneath. The VM had 4 vCPUs and 15 GiB of RAM, which is plenty for Argo CD, Gitea and a registry at once, so nothing in the results comes from resource pressure.

NAME   STATUS   ROLES           AGE    VERSION        INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION
box1   Ready    control-plane   113m   v1.37.2+k3s1   10.128.0.13   <none>        Ubuntu 24.04.5 LTS   7.0.0-1018-gcp

Most of my setup time went into the charts. webcommon is a tiny library-style chart that renders one ConfigMap, and guestbook depends on it over OCI. I pushed both to the plain HTTP registry with helm push ... --plain-http, and kept the guestbook source in Gitea without its charts/ directory so Argo CD has to run helm dependency build itself.

apiVersion: v2
name: guestbook
description: Guestbook web app with a shared OCI dependency
type: application
version: 0.1.0
appVersion: "1.0"
dependencies:
  - name: webcommon
    version: 0.1.0
    repository: oci://10.128.0.13:30500/charts

Remember that dependency line, because it matters later. Out of those two charts I built four Applications at the start and added a fifth mid-upgrade, each one aimed at a different breaking change:

  • guestbook-oci: the chart straight from the OCI repo
  • guestbook-git: Git source, OCI dependency on /charts
  • guestbook-libs: Git source, dependency on a second path, /libs (added on the 3.5 line)
  • guestbook-helm3: Git source with helm.version: v3
  • guestbook-relname: releaseName: '{{ printf "gb-%s" "tpl" }}'

I registered the OCI repo as a plain repository Secret with type: helm, enableOCI: "true" and the URL 10.128.0.13:30500/charts, and nothing else. A lot of 3.x installs look like that, because on Helm 3 it simply worked. The diagram shows where each piece sits and which path fails once Helm 4 arrives.

Architecture of the Argo CD repo-server calling Helm 4 against Gitea and a plain HTTP OCI registry, with the HTTPS failure path

Only the repo-server talks to Helm. The controller asks it for manifests over gRPC, it clones Git or pulls the chart, and it shells out to the helm binary inside its own image. So the Helm version on your laptop doesn’t matter here. What counts is the one baked into the Argo CD image.

kubectl -n argocd get deploy,sts -o custom-columns=NAME:.metadata.name,IMAGE:.spec.template.spec.containers[0].image
kubectl -n argocd exec deploy/argocd-repo-server -- helm version --short

Before the first upgrade, every Argo CD component ran v3.4.14 and the repo-server carried Helm 3.19. Keep an eye on that second number, because it changes underneath you on the next minor without any line in your own manifests changing.

Argo CD 3.4.14 component images and the repo-server Helm v3.19.4 version before the upgrade

All four Applications were Synced and Healthy at this point, including the one with the templated release name, which Helm 3 rendered to gb-tpl. Save the same two commands’ output from your own cluster. It is the quickest proof of where you started if you need to roll back.

Auditing Applications and repos before the upgrade

Clicking through the UI does not scale past a dozen apps, so I wrote a small jq audit that reads Applications and repository Secrets and prints only what the upgrade cares about. It needs kubectl with read access to Applications and Secrets in the Argo CD namespace, plus jq.

vim argocd-preflight.sh

Paste in the script below. It checks both spec.source and multi-source spec.sources, and the release-name regex is the one Helm itself prints when it rejects a name:

#!/usr/bin/env bash
# Pre-upgrade audit for Argo CD 3.4 -> 3.6 (Helm 4, releaseName validation)
set -euo pipefail
NS=${ARGOCD_NAMESPACE:-argocd}
RE='^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'

echo "== Applications with a releaseName Helm will now reject"
kubectl get applications.argoproj.io -A -o json | jq -r --arg re "$RE" '
  .items[] | . as $a
  | [(.spec.source // empty), (.spec.sources[]? // empty)][]
  | select(.helm.releaseName != null)
  | .helm.releaseName as $n
  | select(($n | test($re) | not) or ($n | length) > 53)
  | "\($a.metadata.namespace)/\($a.metadata.name)\treleaseName=\($n)"'

echo "== Applications pinning helm.version (ignored by Helm 4 builds)"
kubectl get applications.argoproj.io -A -o json | jq -r '
  .items[] | . as $a
  | [(.spec.source // empty), (.spec.sources[]? // empty)][]
  | select(.helm.version != null)
  | "\($a.metadata.namespace)/\($a.metadata.name)\thelm.version=\(.helm.version)"'

echo "== OCI Helm repositories and their TLS flags"
kubectl -n "$NS" get secrets -l 'argocd.argoproj.io/secret-type in (repository,repo-creds)' -o json | jq -r '
  .items[] | (.data // {}) as $d
  | select(($d.enableOCI // "" | @base64d) == "true" or ($d.url // "" | @base64d | startswith("oci://")))
  | [ .metadata.name,
      ($d.url | @base64d),
      "insecure=" + (($d.insecure // "") | @base64d),
      "insecureOCIForceHttp=" + (($d.insecureOCIForceHttp // "") | @base64d) ] | @tsv'

echo "== Helm sources (check their Chart.yaml for oci:// dependencies)"
kubectl get applications.argoproj.io -A -o json | jq -r '
  .items[] | . as $a
  | [(.spec.source // empty), (.spec.sources[]? // empty)][]
  | select(.chart != null or .helm != null or ((.path // "") != "" and (.directory == null) and (.kustomize == null)))
  | "\($a.metadata.name)\t\(.repoURL)\t\(.chart // .path)"'

Make it executable and run it against the cluster you’re about to upgrade. It only reads, so it’s safe on production, though the Secret query needs a role that can list Secrets in the Argo CD namespace.

chmod +x argocd-preflight.sh
./argocd-preflight.sh

On box1 it flagged all three problems planted in the first four apps. Each line names the Application or Secret, so the output doubles as a to-do list for the hops below.

Pre-flight audit script listing a templated releaseName, a helm.version v3 pin and an OCI repo without insecureOCIForceHttp

No script can tell from a Secret whether a registry speaks TLS, so an OCI repo with an empty insecureOCIForceHttp is a prompt to check, not a verdict. It also can’t see dependencies, because those live in each chart’s Chart.yaml inside Git; the last section lists every Helm source so you know which repos to grep for oci://. That blind spot is exactly what bit me later with guestbook-libs. Release names set through a .argocd-source.yaml override file in Git are also invisible to it.

Moving to the latest 3.4 patch first

Why start with a patch release? Because the release-name change isn’t a 3.5 or 3.6 feature. It’s the fix for GHSA-v2hj-322q-6cg4, where the repo-server handed releaseName to Helm as a template, so anyone who could edit an Application could print the repo-server’s environment, REDIS_PASSWORD included. It shipped in 3.4.15, 3.5.9 and 3.6.3 together, so you hit it on whichever line you’re on, and I’d rather meet one failure at a time.

export ARGOCD_VERSION="v3.4.15" # pin: latest 3.4 patch before the minor jump #https://github.com/argoproj/argo-cd/releases
kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/${ARGOCD_VERSION}/manifests/install.yaml
kubectl -n argocd rollout status deploy/argocd-repo-server --timeout=180s
kubectl -n argocd rollout status sts/argocd-application-controller --timeout=180s

Both rollouts finished cleanly. I then forced a hard refresh on every Application so I was not looking at cached manifests.

kubectl -n argocd get applications -o name | xargs -I{} kubectl -n argocd annotate {} argocd.argoproj.io/refresh=hard --overwrite

Three apps stayed green. guestbook-relname went to Unknown, and the condition names the field, so you know exactly which spec to edit.

Argo CD 3.4.15 rejecting a templated spec.source.helm.releaseName as an invalid Helm release name

Write down what the template used to render and set that instead. Helm 3 had turned my template into gb-tpl, so that’s the literal I set. Keeping the same name matters: a different release name means Argo CD renders different resource names, prunes the old ones and creates new ones.

kubectl -n argocd patch application guestbook-relname --type merge -p '{"spec":{"source":{"helm":{"releaseName":"gb-tpl"}}}}'

I checked the Applications and the Deployment in the app’s namespace after the next refresh.

kubectl -n argocd get applications
kubectl -n gb-relname get deploy

The app was back, and the Deployment’s age shows Argo CD never recreated it. Pick a different literal and you’d see a fresh Deployment and the old one pruned.

NAME                SYNC STATUS   HEALTH STATUS
guestbook-git       Synced        Healthy
guestbook-helm3     Synced        Healthy
guestbook-oci       Synced        Healthy
guestbook-relname   Synced        Healthy
NAME     READY   UP-TO-DATE   AVAILABLE   AGE
gb-tpl   1/1     1            1           3m4s

If your release names come from an ApplicationSet template, fix them in the generator rather than on each Application, or the ApplicationSet controller will put the template back. The ApplicationSet multi-cluster patterns post shows where those templates usually live. I’d also rotate the Redis password if anyone outside your platform team could edit Applications before this patch, which is what the advisory recommends.

Crossing into Helm 4 on the 3.5 line

Most of the pain lives in this hop. Argo CD 3.5 replaced Helm 3 in the repo-server image with Helm 4, and the 3.4 to 3.5 upgrade notes say plainly that Helm 4 won’t fall back to HTTP for an OCI registry unless it gets --plain-http. I expected breakage and got it.

export ARGOCD_VERSION="v3.5.9" # pin: latest 3.5 patch #https://github.com/argoproj/argo-cd/releases
kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/${ARGOCD_VERSION}/manifests/install.yaml
kubectl -n argocd rollout status deploy/argocd-repo-server --timeout=180s
kubectl -n argocd exec deploy/argocd-repo-server -- helm version --short

Once the rollout finished, the repo-server reported Helm 4. The 3.4 to 3.5 upgrading notes name Helm 4.2.0, and the 3.5.9 build I installed shipped v4.2.1. This is the Argo CD Helm 4 switch in one line of output, and every chart render from here on goes through it.

deployment "argocd-repo-server" successfully rolled out
Defaulted container "argocd-repo-server" out of: argocd-repo-server, copyutil (init)
v4.2.1+gd591a19

After a hard refresh, every app that touched the registry went to Unknown. guestbook-oci failed on helm pull, and the Git apps failed earlier on helm dependency build, even guestbook-helm3, which still asked for Helm 3:

Argo CD 3.5.9 applications in Unknown sync status with server gave HTTP response to HTTPS client from Helm 4

Look at the URL in each message: https://10.128.0.13:30500/v2/.... Helm 4 went to HTTPS, the registry answered in plain HTTP, and the pull died. Health stayed Healthy because the live objects were untouched; only manifest generation failed. That’s good news for uptime, but it also means an alert on health alone won’t fire.

Fixing “server gave HTTP response to HTTPS client”

Each plain HTTP repo needs insecureOCIForceHttp, which Argo CD turns into --plain-http on every Helm call against that URL. I used the 3.5 CLI in core mode, which talks to the Kubernetes API directly, so no argocd login is needed, as long as your kube context points at the argocd namespace (kubectl config set-context --current --namespace=argocd). The ArgoCD CLI reference covers core mode if you haven’t used it.

argocd repo add 10.128.0.13:30500/charts --core --type helm --enable-oci --name lab-oci --insecure-oci-force-http --upsert
argocd repo list --core

With --upsert the CLI updated my existing Secret in place rather than creating a second one. Listing Secrets with the argocd.argoproj.io/secret-type=repository label afterwards is a quick way to confirm there’s still one per URL.

Repository '10.128.0.13:30500/charts' added
TYPE  NAME     REPO                                                         INSECURE  OCI    LFS    CREDS  STATUS      MESSAGE  PROJECT
helm  lab-oci  10.128.0.13:30500/charts                                     true      true   false  false  Successful
git            http://gitea.gitea.svc.cluster.local:3000/philip/charts.git  false     false  false  false  Successful

Don’t trust the INSECURE column, though. It read true here even though the Secret had no insecure key, only insecureOCIForceHttp: "true", which I confirmed by decoding the Secret. My registry had no login. On a repo with stored credentials, --upsert rewrites the Secret from the flags you pass, so leaving out --username and --password can blank them; patch the one key instead. If you manage repos declaratively, the same fix is one line in stringData:

stringData:
  insecureOCIForceHttp: "true"

After a hard refresh, all four apps were Synced again. That surprised me a little for guestbook-git, until I realised its dependency lives under the same /charts path, so the one Secret covered both the chart and the dependency.

Registering an OCI dependency registry on its own

Real platforms rarely keep dependencies next to the app chart, so I pushed webcommon to a second path, /libs, and pointed a new chart at it. With Helm 3, Argo CD never needed to know that path existed. On 3.5 the new app failed straight away, and its first condition says why.

kubectl -n argocd get application guestbook-libs
kubectl -n argocd get application guestbook-libs -o jsonpath='{.status.conditions[0].message}{"\n"}'

Both commands returned this:

NAME             SYNC STATUS   HEALTH STATUS
guestbook-libs   Unknown       Healthy
Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = error building helm chart dependencies: failed to build helm dependencies: failed to build dependencies: failed running helm: `helm dependency build` failed exit status 1: Error: could not download oci://10.128.0.13:30500/libs/webcommon: failed to perform "FetchReference" on source: Get "https://10.128.0.13:30500/v2/libs/webcommon/manifests/0.1.0": http: server gave HTTP response to HTTPS client

Argo CD matches dependency URLs against registered repos, and nothing matched /libs, so Helm ran without --plain-http. Registering the path with the same flag fixed it.

argocd repo add 10.128.0.13:30500/libs --core --type helm --enable-oci --name lab-libs --insecure-oci-force-http

After one refresh I listed what landed in the app’s namespace. The ConfigMap is the proof I wanted, because only the dependency chart renders it.

kubectl -n gb-libs get deploy,cm

Helm pulled and rendered the dependency, ConfigMap and all:

NAME                             READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/guestbook-libs   1/1     1            1           42s

NAME                              DATA   AGE
configmap/guestbook-libs-common   1      42s
configmap/kube-root-ca.crt        1      42s

My audit can’t catch this one. Before upgrading, run grep -rn 'oci://' --include=Chart.yaml . in each chart repo and make sure every plain HTTP host and path in the result has its own repo Secret.

Why insecure and insecureOCIForceHttp can’t share a repo

The upgrade notes warn that --insecure-skip-server-verification beside --insecure-oci-force-http makes Helm 4 drop plain HTTP. I wanted to see it, because a lot of people add every insecure flag they can find when a lab registry misbehaves. So I set both on lab-oci:

argocd repo add 10.128.0.13:30500/charts --core --type helm --enable-oci --name lab-oci --insecure-oci-force-http --insecure-skip-server-verification --upsert

Argo CD passed both flags to Helm, and the pull still went to HTTPS. Read the command in the message closely.

helm pull with both --insecure-skip-tls-verify and --plain-http still failing against a plain HTTP registry

I’d call this the nastiest version of the bug, because the command line looks right. --plain-http is right there and Helm ignores it. Removing insecure from the Secret cleared it after a hard refresh. A registry that serves plain HTTP has no certificate to skip anyway. My Secret was named repo-oci-charts; one the CLI created is called repo- plus a hash, so take yours from the first column of the audit’s OCI section.

kubectl -n argocd patch secret repo-oci-charts --type json -p '[{"op":"remove","path":"/data/insecure"}]'
kubectl -n argocd annotate application guestbook-oci argocd.argoproj.io/refresh=hard --overwrite

The upgrade notes add a harder case I didn’t build: a main repo with insecure on real TLS plus a plain HTTP dependency repo fails the same way, and there’s no workaround except putting TLS on the dependency registry.

What happens to helm.version: v3

Nothing visible happens to it. I read the field back from the Application and listed the Helm binaries in the repo-server image.

kubectl -n argocd get application guestbook-helm3 -o jsonpath='{.spec.source.helm}{"\n"}'
kubectl -n argocd exec deploy/argocd-repo-server -c argocd-repo-server -- sh -c 'ls /usr/local/bin | grep -i helm; helm version --short'

The field stays on the Application, Argo CD ignores it, and the repo-server has only one Helm binary to run:

{"version":"v3"}
helm
v4.2.1+gd591a19

Any chart that only renders correctly under Helm 3 has to be fixed in the chart itself. The Helm 3 to Helm 4 migration guide walks through what changed in rendering and in the CLI. I’d test those charts locally with Helm 4 before the hop, because once you’re on 3.5 there’s no per-app escape hatch.

UI extensions after the React 19 upgrade

Argo CD 3.5 also moved its UI from React 16 to React 19, and that one bites anybody who ships a UI extension. To see how it fails, I built a small status panel extension the way most older extensions are built: JSX compiled with the automatic runtime, and only react and react-dom left to the host page. The webpack config is where that decision lives:

vim webpack.config.js

This is the externals block of the old build. Everything not listed here gets bundled into the extension file:

  externals: {
    react: 'React',
    'react-dom': 'ReactDOM',
  },

Build it, then copy the bundle into the argocd-server pod. Argo CD serves any extension*.js file under /tmp/extensions/, and that path is an emptyDir, so the copy disappears whenever the pod is replaced by a rollout, an eviction or a delete. The copy also lands in one replica only, so an HA install with several argocd-server pods needs it in each, and production setups are better served by the argocd-extension-installer init container:

npm run build
POD=$(kubectl -n argocd get pod -l app.kubernetes.io/name=argocd-server -o jsonpath='{.items[0].metadata.name}')
kubectl -n argocd exec "$POD" -- mkdir -p /tmp/extensions/lab-status
kubectl -n argocd cp dist/extension-lab-status.js "$POD":/tmp/extensions/lab-status/extension-lab-status.js

The build output is the part worth reading. webpack pulled react/jsx-runtime.js and react-jsx-runtime.production.min.js out of node_modules into the bundle, which came to 1.44 KiB. That is React 18’s JSX runtime riding inside the extension. On 3.4.15 nobody notices, because the host’s React 16 doesn’t care, and the Lab Extension status panel shows up on the application page next to Last Sync:

Argo CD 3.4.15 application page with the Lab Extension status panel rendered by the old extension build

Then I applied the 3.5.9 manifests and copied the same bundle back in, since the rollout had replaced the pod and emptied /tmp/extensions. The panel was simply gone. No banner, no toast, nothing on the page says an extension failed. The only trace is in the browser’s developer console:

Old extension build bundling react/jsx-runtime, then the Argo CD 3.5.9 browser console error Extension failed to load TypeError ReactCurrentOwner

The bundled React 18 JSX runtime reads ReactCurrentOwner off React’s old internals object, which React 19 no longer exposes, so the lookup hits undefined and the whole extension file throws before it can register. The property named in the error can differ with other builds, so search the console for “failed to load” rather than for this exact word. If your users report that a tab or panel “just vanished” after the upgrade, open the console before you go digging in RBAC.

The fix from the React 19 extension guide is one line. The 3.5 UI exposes its own JSX runtime as ReactJSXRuntime, so the extension should use that instead of carrying one:

  externals: {
    react: 'React',
    'react-dom': 'ReactDOM',
    'react/jsx-runtime': 'ReactJSXRuntime',
  },

Rebuild and copy it in with the same kubectl cp as before. The bundle shrinks because the runtime is no longer inside it:

asset extension-lab-status.js 421 bytes [emitted] [minimized] (name: main)
orphan modules 84 bytes [orphan] 2 modules
./src/index.jsx + 2 modules 687 bytes [not cacheable] [built] [code generated]
webpack 5.97.1 compiled successfully in 1572 ms

421 bytes against 1.44 KiB is a quick check you can run in CI: if the size didn’t drop, the runtime is still bundled. After a page reload on 3.5.9 the Lab Extension status panel was back:

Argo CD 3.5.9 application page with the rebuilt extension status panel loading against React 19

A dependency can still drag the old runtime in on its own, because libraries such as antd import react/jsx-runtime directly, and the externals line covers those imports too. If you run the Argo Rollouts or ephemeral access extensions, the guide links the upstream pull requests that made this change, so upgrade those extensions in the same window as Argo CD. Swap the bundle together with the upgrade rather than ahead of it, because the rebuilt file expects the ReactJSXRuntime global that the 3.5 UI provides and the React 16 UI on 3.4 does not. If an extension still fails after the externals change, one of its libraries doesn’t support React 19 yet and needs a version bump.

The same notes list other 3.5 changes my lab didn’t exercise. None of them broke box1, but each one can break a cluster that relies on it:

  • Impersonation now covers API server operations, so those service accounts need more RBAC
  • SSH repos without credentials read argocd-ssh-known-hosts-cm
  • Event listing calls return an EventList type
  • The per-app CSS class gains a prefix
  • GnuPG verification gives way to Source Integrity

Impersonation is the one I’d check first if you use it, because a missing RBAC rule shows up as permission errors in the UI rather than a failed sync.

Finishing the Argo CD 3.6 upgrade on the manifest path

With the 3.5 fixes in place, the last hop was quiet. The repo-server moved to Helm 4.3, Redis and Dex images moved too, and nothing needed touching:

export ARGOCD_VERSION="v3.6.3" # pin: tested target #https://github.com/argoproj/argo-cd/releases
kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/${ARGOCD_VERSION}/manifests/install.yaml
kubectl -n argocd rollout status sts/argocd-application-controller --timeout=180s

After a hard refresh all five apps came back Synced on the same Git revision and OCI tag. Since the revisions didn’t move, the sync status reflects the new Argo CD build and not a change in the charts.

All five Argo CD applications Synced and Healthy after the manifest upgrade to 3.6.3

The repo-server’s bundled Helm moved with this hop as well, which you can confirm from inside the container:

kubectl -n argocd exec deploy/argocd-repo-server -c argocd-repo-server -- helm version --short

On 3.6.3 it reported Helm 4.3.2:

v4.3.2+g8346aaa

Quiet in my lab does not mean quiet everywhere. The 3.5 to 3.6 notes list changes that didn’t touch box1 but could touch you:

  • ARGOCD_REPO_OTLP_HEADERS is no longer read; rename it to ARGOCD_REPO_SERVER_OTLP_HEADERS
  • ServerSideApply=true apps now use Server-Side Diff, which means extra dry-run calls to the API server
  • Resources that miss a resource.selectors rule are excluded, not applied
  • argocd app diff --local --server-side-generate now sends *.tpl and Chart.lock by default

If you use tracing, handle the OTLP changes before the hop. A renamed variable fails silently, so the repo-server just stops sending headers, and the notes also make otlp.insecure the only TLS switch and move the sampler to parent-based. The Argo CD 3.6.3 security release also carries other security fixes, and the GHSA-rq7v-q562-vwcq check is a good model for confirming a fix actually landed on your cluster.

Upgrading Argo CD with the argo-cd Helm chart

Plenty of clusters run Argo CD from the community chart instead, so I deleted the manifest install and did it again. There’s a catch here: the chart versions I used ship older patches. Chart 10.2.2 carries app v3.4.6 and chart 10.11.7 carries v3.5.7, so I pinned global.image.tag to the patch I wanted and let the chart version follow the minor line.

vim argocd-values.yaml

My values file started like this, and server.insecure is only there because the lab has no ingress TLS. Pinning the tag past the chart’s appVersion worked here, but the CRDs still come from the chart, so keep the tag within the chart’s minor line:

global:
  image:
    tag: v3.4.14
configs:
  params:
    server.insecure: true

Then I installed chart 10.2.2, a chart release on the 3.4 line, and recreated the same five Applications with the same unfixed repo Secrets:

helm repo add argo https://argoproj.github.io/argo-helm
helm upgrade --install argocd argo/argo-cd --version 10.2.2 -n argocd --create-namespace -f argocd-values.yaml --wait --timeout 5m #https://github.com/argoproj/argo-helm/releases

This time I applied every fix while still on 3.4, which is the order I’d recommend. The 3.4 CLI accepts insecureOCIForceHttp and stores it, but the 3.4 Helm path never passes --plain-http, so setting it early changes nothing until the 3.5 hop:

  1. Set insecureOCIForceHttp: "true" on the /charts repo Secret
  2. Add a Secret for /libs with the same flag (below)
  3. Patch guestbook-relname to the literal gb-tpl
  4. Rerun the audit

For step 2, create a file for the dependency repo. Declarative Secrets are easier to review than CLI calls, and they survive a reinstall.

vim repo-oci-libs.yaml

This is the Secret I applied. The label is what makes Argo CD treat it as a repository:

apiVersion: v1
kind: Secret
metadata:
  name: repo-oci-libs
  namespace: argocd
  labels:
    argocd.argoproj.io/secret-type: repository
stringData:
  name: lab-libs
  type: helm
  enableOCI: "true"
  insecureOCIForceHttp: "true"
  url: 10.128.0.13:30500/libs

Apply it with kubectl apply -f repo-oci-libs.yaml, patch the release name, and rerun the audit. Apart from the harmless helm.version pin, the rerun came back clean.

== Applications with a releaseName Helm will now reject
== Applications pinning helm.version (ignored by Helm 4 builds)
argocd/guestbook-helm3	helm.version=v3
== OCI Helm repositories and their TLS flags
repo-oci-charts	10.128.0.13:30500/charts	insecure=	insecureOCIForceHttp=true
repo-oci-libs	10.128.0.13:30500/libs	insecure=	insecureOCIForceHttp=true

For the 3.5 hop I changed the tag in the values file to v3.5.9 and moved to chart 10.11.7. Changing the chart and the tag together keeps the CRDs and the binaries on the same minor line.

sed -i 's/tag: v3.4.14/tag: v3.5.9/' argocd-values.yaml
helm upgrade argocd argo/argo-cd --version 10.11.7 -n argocd -f argocd-values.yaml --wait --timeout 5m #https://github.com/argoproj/argo-helm/releases

Every app stayed Synced through it, and the repo-server reported Helm v4.2.1. One thing tripped up my own capture script: the chart names the repo-server container repo-server, not argocd-repo-server like the manifests do, so any kubectl exec -c argocd-repo-server in your runbooks needs changing on chart installs.

For 3.6, I removed the global.image block entirely, because chart 10.20.0 ships v3.6.3 as its own appVersion and a leftover pin would hold you back on the next upgrade:

helm upgrade argocd argo/argo-cd --version 10.20.0 -n argocd -f argocd-values.yaml --wait --timeout 5m #https://github.com/argoproj/argo-helm/releases
kubectl -n argocd get applications -o wide
kubectl -n argocd get svc

Five green apps, Helm 4.3.2, and a new headless argocd-application-controller Service with no cluster IP. That last one isn’t in the manifest install, so the two paths don’t end up with identical objects.

Argo CD installed from argo-cd chart 10.20.0 with applications synced and the new headless application-controller Service

Chart 10.13.0 added that Service, one of several chart-only changes the chart’s upgrade notes list between the two lines. They’re separate from Argo CD’s own notes and easy to miss.

  • 10.13.0: the headless controller Service; delete yours first if you created one by hand, or the upgrade fails
  • 10.17.0: helm.sh/chart leaves the pod templates, so every pod restarts once
  • 10.20.0: repo-server and Redis stop mounting a service account token unless the repo-server has RBAC

I’d check the 10.20.0 change first. A config management plugin sidecar or argocd-vault-plugin with Kubernetes auth needs that token, and the chart says it fails with a missing token file until you set repoServer.automountServiceAccountToken: true. Chart 10.0.0 also turned on NetworkPolicies by default; my chart path started above that, so I didn’t hit it.

What I still don’t know

Both paths ended on 3.6 with every app green, but the lab left me with a few open questions I couldn’t settle on one box.

  • Self-signed TLS registries: untested, since my registry had no TLS at all
  • Authenticated OCI with repo-creds templates: untested
  • Kubernetes 1.37 support for the 3.4 line: it worked on k3s, but I didn’t find 1.37 in the 3.4 test matrix
  • arm64 nodes: I only ran amd64

I’d want the self-signed case answered before a production upgrade. The notes say insecure and plain HTTP conflict, but a registry with a private CA should be fixed by trusting the CA in argocd-tls-certs-cm rather than with either flag, and I haven’t proved that on Helm 4. If you run that setup, do one hop on a copy of your Argo CD namespace first, refresh every Helm app, and read the conditions before you call it done.

Keep reading

Best UI Applications for Managing Docker Containers Containers Best UI Applications for Managing Docker Containers Install Docker and Run Containers on Ubuntu 24.04|22.04 Containers Install Docker and Run Containers on Ubuntu 24.04|22.04 Install UniFi OS Server on Ubuntu 26.04 / 24.04 LTS Containers Install UniFi OS Server on Ubuntu 26.04 / 24.04 LTS Traefik 3.8 Upgrade: Breaking Changes, Yaegi v2 and Helm Test Containers Traefik 3.8 Upgrade: Breaking Changes, Yaegi v2 and Helm Test magpie: One AI Gateway for Claude Code and Codex on Linux AI magpie: One AI Gateway for Claude Code and Codex on Linux How To Provision PV on Kubernetes using Local Path Provisioner Containers How To Provision PV on Kubernetes using Local Path Provisioner

Leave a Comment

Press ESC to close