Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/substrate-atelet/templates/atelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ spec:
readOnly: true
- name: kubelet-plugins
mountPath: /var/lib/kubelet/plugins
# HostToContainer: kubelet stages CSI volumes under this directory; a private copy
# of those mounts would keep every volume's filesystem (and LUKS mapper) open after
# kubelet unmounts it, so the volume can never be unstaged while atelet runs.
mountPropagation: HostToContainer
- name: device-plugins
mountPath: /var/lib/kubelet/device-plugins
- name: host-dev
Expand Down
29 changes: 29 additions & 0 deletions charts/substrate-atelet/tests/kubelet_plugins_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2026 The Agent Substrate Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

suite: Kubelet plugins mount
templates:
- atelet.yaml
tests:
- it: receives kubelet's mounts and unmounts of CSI volumes
documentSelector:
path: kind
value: DaemonSet
asserts:
- contains:
path: spec.template.spec.containers[?(@.name == "atelet")].volumeMounts
content:
name: kubelet-plugins
mountPath: /var/lib/kubelet/plugins
mountPropagation: HostToContainer
4 changes: 4 additions & 0 deletions charts/substrate/templates/atelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ spec:
readOnly: true
- name: kubelet-plugins
mountPath: /var/lib/kubelet/plugins
# HostToContainer: kubelet stages CSI volumes under this directory; a private copy
# of those mounts would keep every volume's filesystem (and LUKS mapper) open after
# kubelet unmounts it, so the volume can never be unstaged while atelet runs.
mountPropagation: HostToContainer
- name: device-plugins
mountPath: /var/lib/kubelet/device-plugins
- name: host-dev
Expand Down
4 changes: 4 additions & 0 deletions manifests/ate-install/atelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ spec:
readOnly: true
- name: kubelet-plugins
mountPath: /var/lib/kubelet/plugins
# HostToContainer: kubelet stages CSI volumes under this directory; a private copy
# of those mounts would keep every volume's filesystem (and LUKS mapper) open after
# kubelet unmounts it, so the volume can never be unstaged while atelet runs.
mountPropagation: HostToContainer
- name: device-plugins
mountPath: /var/lib/kubelet/device-plugins
- name: host-dev
Expand Down