Skip to content

Commit 6dadea0

Browse files
committed
USHIFT-6359: Force SRIOV_CNI_BIN_PATH value
1 parent b29bbfc commit 6dadea0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/auto-rebase/rebase_sriov.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ extract_operator_from_csv() {
253253
| .metadata.namespace = \"${namespace}\"
254254
| del(.name)
255255
| del(.label)
256+
| .spec.template.spec.containers[0].env += [{\"name\": \"SRIOV_CNI_BIN_PATH\", \"value\": \"/run/cni/bin\"}]
256257
" "${csv}" > "${target}"
257258
}
258259

@@ -305,6 +306,7 @@ extract_sriov_manifests() {
305306
local operator="${STAGING_SRIOV}/${OPERATOR_FILENAME}"
306307
echo "generating ${operator}"
307308
extract_operator_from_csv "${STAGING_SRIOV}/${CSV_FILENAME}" "${NAMESPACE}" "${operator}"
309+
#TODO need to patch the env vars to add SRIOV_CNI_BIN_PATH to /run/cni/bin
308310

309311
local namespace="${STAGING_SRIOV}/namespace.yaml"
310312
echo "generating ${namespace}"

0 commit comments

Comments
 (0)