File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This Skyhook Package allows you to run arbitrary bash scripts defined in your Sk
44```
55example:
66 version: 1.0.0
7- image: nvcr .io/skyhook/shellscript
7+ image: ghcr .io/nvidia/ skyhook-packages /shellscript
88 configMap:
99 apply.sh: |-
1010 #!/bin/bash
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Specify different interrupts for the configmap interrupts to apply a more limite
3939``` yaml
4040tuning :
4141 version : 1.0.0
42- image : nvcr .io/skyhook/tuning:1.0.0
42+ image : ghcr .io/nvidia/ skyhook-packages /tuning:1.0.0
4343 interrupt :
4444 type : reboot
4545 configInterrupts :
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ if [ -f ${SKYHOOK_DIR}/configmaps/sysctl.conf ]; then
2424 done <<< $( cat ${SKYHOOK_DIR} /configmaps/sysctl.conf)
2525fi
2626
27- if [[ -f ${SKYHOOK_DIR} /configmaps/service_containerd.conf || -f ${SKYHOOK_DIR} /configmaps/service_crio.conf ]]; then
27+ function container_check {
28+ file=$1
2829 echo " -------------------------"
2930 echo " Check container limits"
3031 echo " -------------------------"
@@ -67,7 +68,15 @@ if [[ -f ${SKYHOOK_DIR}/configmaps/service_containerd.conf || -f ${SKYHOOK_DIR}/
6768 failures=$( printf " %s\n%s" " ${failures} " " $name : ${expected_value} != ${actual_value} " )
6869 fi
6970 # Use cat here instead of < file in case of single line files
70- done <<< $( cat ${SKYHOOK_DIR} /configmaps/container_limits.conf)
71+ done <<< $( cat $file | grep Limit)
72+ }
73+
74+ if [ -f ${SKYHOOK_DIR} /configmaps/service_containerd.conf ]; then
75+ container_check ${SKYHOOK_DIR} /configmaps/service_containerd.conf
76+ fi
77+
78+ if [ -f ${SKYHOOK_DIR} /configmaps/service_crio.conf ]; then
79+ container_check ${SKYHOOK_DIR} /configmaps/service_crio.conf
7180fi
7281
7382if [ -f ${SKYHOOK_DIR} /configmaps/grub.conf ]; then
You can’t perform that action at this time.
0 commit comments