File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
assets/state-kata-manager Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ metadata:
77 app : nvidia-kata-manager
88data :
99 entrypoint.sh : |-
10- #!/bin/bash
10+ #!/bin/sh
1111
12- if [[ "${CDI_ENABLED}" == "true" ] ]; then
12+ if [ "${CDI_ENABLED}" = "true" ]; then
1313 while true; do
14- if [[ -f /run/nvidia/validations/vfio-pci-ready ] ]; then
14+ if [ -f /run/nvidia/validations/vfio-pci-ready ]; then
1515 break
1616 fi
1717 echo "waiting for vfio-pci validations to complete..."
Original file line number Diff line number Diff line change 2727 - name : nvidia-kata-manager
2828 image : " FILLED BY THE OPERATOR"
2929 imagePullPolicy : IfNotPresent
30- command : ["/bin/bash ", "-c"]
30+ command : ["/bin/sh ", "-c"]
3131 args :
3232 - /bin/entrypoint.sh
3333 env :
@@ -66,23 +66,23 @@ spec:
6666 readinessProbe :
6767 exec :
6868 command :
69- - bash
69+ - sh
7070 - " -c"
7171 - |
7272 pid_file="${KATA_ARTIFACTS_DIR}/k8s-kata-manager.pid"
73- [[ -f "${pid_file}" ]] && [[ -d "/proc/$(cat $pid_file)" ] ] && exit 0 || exit 1
73+ [ -f "${pid_file}" ] && [ -d "/proc/$(cat $pid_file)" ] && exit 0 || exit 1
7474 initialDelaySeconds : 5
7575 periodSeconds : 5
7676 terminationGracePeriodSeconds : 30
7777 volumes :
7878 - name : nvidia-kata-manager-entrypoint
7979 configMap :
8080 name : nvidia-kata-manager-entrypoint
81- defaultMode : 448
81+ defaultMode : 493
8282 - name : nvidia-kata-manager-config
8383 configMap :
8484 name : nvidia-kata-manager-config
85- defaultMode : 448
85+ defaultMode : 493
8686 - name : host-root
8787 hostPath :
8888 path : /
You can’t perform that action at this time.
0 commit comments