Skip to content

Commit 2ffc767

Browse files
committed
add explanations for configs in osguard-ci-delta
Signed-off-by: Chris Co <chrco@microsoft.com>
1 parent fb8fcac commit 2ffc767

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

toolkit/imageconfigs/templates/osguard-ci-delta.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,37 @@
11
os:
2+
# Ensure SELinux is in Enforcing Mode for OS Guard Code Integrity image.
23
selinux:
34
mode: enforcing
45
kernelCommandLine:
56
extraCommandLine:
7+
# Enforce signatures for all dm-verity volumes on the system. This
8+
# verification is needed in conjunction with our dm-verity-enabled
9+
# erofs-snapshotter to ensure erofs container layers, which are
10+
# dm-verity volumes, are signed by a trusted entity
611
- dm_verity.require_signatures=1
712
packages:
813
install:
14+
# For containerd erofs-snapshotter to function, supply its userland
15+
# utilities
916
- erofs-utils
1017
modules:
18+
# Ensure the erofs kernel module is always loaded so containerd
19+
# erofs-snapshotter can use it.
1120
- name: erofs
1221
loadMode: always
1322
additionalFiles:
23+
# Place custom containerd config that configures erofs-snapshotter as the
24+
# default snapshotter when setting up container images
1425
- source: files/osguard-ci/config.toml
1526
destination: /etc/containerd/config.toml
1627
permissions: "644"
28+
# Place custom CNI config for enabling pod networking on container creation
1729
- source: files/osguard-ci/10-podnet.conf
1830
destination: /etc/cni/net.d/10-podnet.conf
1931
permissions: "644"
2032
scripts:
2133
postCustomization:
34+
# Tag this image variant with its specific variant-id
2235
- path: scripts/set_os_release_variant_entries.sh
2336
arguments:
2437
- --variant-id

0 commit comments

Comments
 (0)