Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit f146c77

Browse files
ahsan518CraigSterrett
authored andcommitted
Using consistent ENV variable for RUNNER (#273)
Earlier there was confusion between CLRK8S_RUNNER and RUNNER in setup_system.sh and create_stack.sh script, this patch fixes this and now the variable can either be RUNNER/CLRK8S_RUNNER. Signed-off: syed.ahsan.shamim.zaidi@intel.com
1 parent 9510b06 commit f146c77

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

clr-k8s-examples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ This script ensures the following
3838
script uses the runtime specified in the `RUNNER` environment variable and defaults to `crio`. To use the
3939
`containerd` runtime, set the `RUNNER` environment variable to `containerd`.
4040

41+
In case of vagrant, if you want to spin up VM's using different environment variable than declared in [`setup_system.sh`],
42+
specify when performing vagrant up. E.g., `RUNNER=containerd vagrant up`
43+
4144
### Specify a version of Clear Linux
4245

4346
To specify a particular version of Clear Linux to use, set the CLRK8S_CLR_VER environment variable to the desired

clr-k8s-examples/create_stack.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ METALLB_VER="${CLRK8S_METALLB_VER:-v0.8.1}"
3030
NPD_VER="${CLRK8S_NPD_VER:-v0.6.6}"
3131
PROMETHEUS_VER="${CLRK8S_PROMETHEUS_VER:-f458e85e5d7675f7bc253072e1b4c8892b51af0f}"
3232
CNI=${CLRK8S_CNI:-"canal"}
33-
RUNNER=${CLRK8S_RUNNER:-"crio"}
33+
if [[ -z "${RUNNER+x}" ]]; then RUNNER="${CLRK8S_RUNNER:-"crio"}"; fi
34+
3435
NFD_VER="${CLRK8S_NFD_VER:-v0.4.0}"
3536

3637
function print_usage_exit() {
@@ -144,10 +145,10 @@ function cni() {
144145
FLANNEL_VER=${1:-$FLANNEL_VER}
145146
FLANNEL_URL="https://github.com/coreos/flannel"
146147
FLANNEL_DIR="0-flannel"
147-
148+
148149
get_repo "${FLANNEL_URL}" "${FLANNEL_DIR}/overlays/${FLANNEL_VER}"
149-
set_repo_version "${FLANNEL_VER}" "${FLANNEL_DIR}/overlays/${FLANNEL_VER}/flannel"
150-
kubectl apply -k "${FLANNEL_DIR}/overlays/${FLANNEL_VER}"
150+
set_repo_version "${FLANNEL_VER}" "${FLANNEL_DIR}/overlays/${FLANNEL_VER}/flannel"
151+
kubectl apply -k "${FLANNEL_DIR}/overlays/${FLANNEL_VER}"
151152
;;
152153
cilium)
153154
CILIUM_VER=${1:-$CILIUM_VER}

clr-k8s-examples/setup_system.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ HIGH_POD_COUNT=${HIGH_POD_COUNT:-""}
1111
# set no proxy
1212
ADD_NO_PROXY=".svc,10.0.0.0/8,192.168.0.0/16"
1313
ADD_NO_PROXY+=",$(hostname -I | sed 's/[[:space:]]/,/g')"
14-
: "${RUNNER:=crio}"
14+
if [[ -z "${RUNNER+x}" ]]; then RUNNER="${CLRK8S_RUNNER:-crio}"; fi
1515

1616
# update os version
1717
function upate_os_version() {
18-
if [[ -n "${CLR_VER}" ]];
19-
then
18+
if [[ -n "${CLR_VER}" ]]; then
2019
sudo swupd repair -m "${CLR_VER}" --picky
2120
return
2221
fi

0 commit comments

Comments
 (0)