fix: drop /opt mount for containers/tink

The `/opt/cni/bin` in the rootfs contains CNI binaries, which get
overwritten by the volume mount.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
Andrey Smirnov
2024-08-22 20:33:08 +04:00
parent 3c0db34d85
commit 5ff6cf82ca
2 changed files with 1 additions and 3 deletions

View File

@@ -420,7 +420,7 @@ func (suite *TinkSuite) getTinkManifests(namespace, serviceName, ssName, talosIm
},
},
xslices.Map(
constants.Overlays,
xslices.Filter(constants.Overlays, func(overlay string) bool { return overlay != "/opt" }), // /opt/cni/bin contains CNI binaries
func(mountPath string) overlayMountSpec {
return overlayMountSpec{
MountPoint: mountPath,

View File

@@ -100,6 +100,4 @@ volumeMounts:
name: etc-kubernetes
- mountPath: /usr/libexec/kubernetes
name: usr-libexec-kubernetes
- mountPath: /opt
name: opt
```