Skip to content

Commit b3a6017

Browse files
committed
bridge cni: always deploy cnv- prefixed binaries
Some projects (e.g. openshift/console) use cnv- prefix to distinguish between binaries shipped by OpenShift and those shipped by KubeVirt (D/S matters). Following two lines make sure we will provide both names when needed. Signed-off-by: Petr Horacek <[email protected]>
1 parent ebfe5a7 commit b3a6017

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

data/linux-bridge/002-linux-bridge.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ spec:
3737
- |
3838
cp -rf /usr/src/containernetworking/plugins/bin/*bridge /opt/cni/bin/
3939
cp -rf /usr/src/containernetworking/plugins/bin/*tuning /opt/cni/bin/
40+
# Some projects (e.g. openshift/console) use cnv- prefix to distinguish between
41+
# binaries shipped by OpenShift and those shipped by KubeVirt (D/S matters).
42+
# Following two lines make sure we will provide both names when needed.
43+
find /opt/cni/bin/cnv-bridge || ln -s /opt/cni/bin/bridge /opt/cni/bin/cnv-bridge
44+
find /opt/cni/bin/cnv-tuning || ln -s /opt/cni/bin/tuning /opt/cni/bin/cnv-tuning
4045
echo "Entering sleep... (success)"
4146
sleep infinity
4247
resources:

0 commit comments

Comments
 (0)