Skip to content

[v1.43] Update an existing flexvol driver when flexVolumePath is None - #5384

Merged
matthewdupre merged 1 commit into
tigera:release-v1.43from
rene-dekker:flexvol-none-update-v1.43
Nov 5, 2026
Merged

matthewdupre merged 1 commit into
tigera:release-v1.43from
rene-dekker:flexvol-none-update-v1.43

Conversation

@rene-dekker

Copy link
Copy Markdown
Member

Description

With flexVolumePath: None, the operator stops rendering the flexvol-driver init container, so a driver installed earlier stays at whatever version it was. This keeps that driver in sync with the installed Calico version:

  • With None, the init container still runs. It mounts an ancestor of the provider's default plugin dir that always exists (/usr, /etc/kubernetes, /home/kubernetes or /var/lib/kubelet) with hostPath type Directory, so nothing is created on the host, and only updates a driver that is already there: calico component flexvol install --if-present for the combined image, flexvol.sh -p for the flexvol image.
  • Explicit paths render as before.

Requires a calico or flexvol image that supports these flags.

Testing: render tests for None on each provider, for both variants.

Release Note

With flexVolumePath set to None, a flexvolume driver already installed in the provider's default plugin directory is now updated on upgrade. For this, calico-node mounts an ancestor of that directory (/usr, /etc/kubernetes, /home/kubernetes or /var/lib/kubelet, depending on the provider) as a hostPath, which hostPath allowlists for calico-node may need to admit.

AI assistance: Claude Code helped port the change and tests.

πŸ€– Generated with Claude Code

With flexVolumePath set to None, the flexvol-driver init container now still
runs and updates a driver that is already installed in the provider's default
plugin directory, so it matches the installed Calico version. It mounts an
ancestor of that directory that always exists, so no directory is created on
the host, and it never installs a driver that isn't already there.
@rene-dekker
rene-dekker force-pushed the flexvol-none-update-v1.43 branch from 1d0bec7 to 3cc29d0 Compare November 5, 2026 19:29
@matthewdupre
matthewdupre merged commit 05b189a into tigera:release-v1.43 Nov 5, 2026
3 checks passed
@rene-dekker
rene-dekker deleted the flexvol-none-update-v1.43 branch November 5, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants