3 # usage: collect_sriov_yaml.sh [target]
8 echo "Please input the target folder!"
19 cp sriov-cni.yaml $temp/
20 cp sriovdp-daemonset.yaml $temp/
21 echo "#!/bin/bash" >> $temp/install.sh
22 echo "cat sriov-cni.yaml | kubectl apply -f -" >> $temp/install.sh
23 echo "cat sriovdp-daemonset.yaml | kubectl apply -f -" >> $temp/install.sh
25 if [ ! -d $target/yaml ]; then
26 $MKDIR_P $target/yaml;
29 tar czvf $target/yaml/sriov_yaml-$VER.tar.gz $temp/