mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-21 09:42:58 +00:00
Otherwise, the latest changes to DRA (which is beta in K8s 1.32) are incompatible. Additionally, this: * Bumps kind version to 0.27.0 * Changes `loglevel` flag to `v` verbosity flag for `kind export logs` * fixes lint in the Dockerfile. * adds a couple notes in the docs.
18 lines
459 B
Bash
Executable File
18 lines
459 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -d yamls ]; then
|
|
mkdir yamls
|
|
fi
|
|
|
|
# specify CNI version (default: 0.4.0)
|
|
CNI_VERSION=${CNI_VERSION:-0.4.0}
|
|
|
|
templates_dir="$(dirname $(readlink -f $0))/templates"
|
|
|
|
# generate yaml files based on templates/*.j2 to yamls directory
|
|
for i in `ls ${templates_dir}/*.j2`; do
|
|
echo "Processing $i..."
|
|
# Use sed to replace the placeholder with the CNI_VERSION variable
|
|
sed "s/{{ CNI_VERSION }}/$CNI_VERSION/g" $i > yamls/$(basename ${i%.j2})
|
|
done
|