Skip to content

Commit

Permalink
Followup #277: add dpv2- prefix to fast-start-namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyuanliang committed Mar 6, 2024
1 parent 04ea284 commit e32e2df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/install-cni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fi
if [[ "${ENABLE_CILIUM_PLUGIN}" == "true" ]]; then
cilium_cni_config='{"type": "cilium-cni", "enable-route-mtu": true}'
if [[ -n "${CILIUM_FAST_START_NAMESPACES:-}" ]]; then
cilium_cni_config=$(jq --arg namespaces "${CILIUM_FAST_START_NAMESPACES:-}" '.["fast-start-namespaces"] = $namespaces' <<<"${cilium_cni_config}")
cilium_cni_config=$(jq --arg namespaces "${CILIUM_FAST_START_NAMESPACES:-}" '.["dpv2-fast-start-namespaces"] = $namespaces' <<<"${cilium_cni_config}")
fi
echo "Adding Cilium plug-in to the CNI config: '$(jq -c . <<<"${cilium_cni_config}")'"
cni_spec=${cni_spec//@cniCiliumPlugin/, ${cilium_cni_config}}
Expand Down
2 changes: 1 addition & 1 deletion scripts/testdata/expected-cilium-faststart.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}, {
"type": "cilium-cni",
"enable-route-mtu": true,
"fast-start-namespaces": "default,kube-system"
"dpv2-fast-start-namespaces": "default,kube-system"
}
]
}

0 comments on commit e32e2df

Please sign in to comment.