File tree Expand file tree Collapse file tree
templates/knd/opt/podplane/lib/configure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,16 +38,26 @@ tmp="${containerd_config}.tmp"
3838awk -v sandbox_image=" $sandbox_image " '
3939 /^ \[plugins\."io\.containerd\.cri\.v1\.images"\]$/ {
4040 print
41- print " sandbox_image = \"" sandbox_image "\""
41+ print " [plugins.\"io.containerd.cri.v1.images\".pinned_images]"
42+ print " sandbox = \"" sandbox_image "\""
4243 in_images = 1
44+ in_pinned_images = 0
4345 next
4446 }
4547 /^ \[plugins\./ {
4648 in_images = 0
49+ in_pinned_images = 0
50+ }
51+ in_images && /^ \[plugins\."io\.containerd\.cri\.v1\.images"\.pinned_images\]$/ {
52+ in_pinned_images = 1
53+ next
4754 }
4855 in_images && /^[[:space:]]*sandbox_image[[:space:]]*=/ {
4956 next
5057 }
58+ in_images && in_pinned_images && /^[[:space:]]*sandbox[[:space:]]*=/ {
59+ next
60+ }
5161 { print }
5262' " ${PODPLANE_ROOT:- } $containerd_config " > " ${PODPLANE_ROOT:- } $tmp "
5363set_file_permissions 0644 root root " $tmp "
You can’t perform that action at this time.
0 commit comments