@@ -35,6 +35,11 @@ const cxTimeout = 5 * time.Minute
3535
3636var (
3737 schema = map [string ]update.Item {
38+ ".github/workflows/functional_test.yml" : {
39+ Replace : map [string ]string {
40+ `CNI_PLUGIN_VERSION=.*` : `CNI_PLUGIN_VERSION="{{.Version}}"` ,
41+ },
42+ },
3843 "deploy/iso/minikube-iso/arch/aarch64/package/cni-plugins-latest-aarch64/cni-plugins-latest.mk" : {
3944 Replace : map [string ]string {
4045 `CNI_PLUGINS_LATEST_AARCH64_VERSION = .*` : `CNI_PLUGINS_LATEST_AARCH64_VERSION = {{.Version}}` ,
@@ -47,22 +52,12 @@ var (
4752 },
4853 "deploy/kicbase/Dockerfile" : {
4954 Replace : map [string ]string {
50- `CNI_PLUGINS_LATEST_VERSION=.*` : `CNI_PLUGINS_LATEST_VERSION="{{.Version}}"` ,
51- },
52- },
53- ".github/workflows/pr.yml" : {
54- Replace : map [string ]string {
55- `CNI_PLUGIN_VERSION\s*=\s*["\\]*v[0-9.]+["\\]*` : `CNI_PLUGIN_VERSION="{{.Version}}"` ,
56- },
57- },
58- ".github/workflows/master.yml" : {
59- Replace : map [string ]string {
60- `CNI_PLUGIN_VERSION\s*=\s*["\\]*v[0-9.]+["\\]*` : `CNI_PLUGIN_VERSION="{{.Version}}"` ,
55+ `CNI_PLUGINS_VERSION=.*` : `CNI_PLUGINS_VERSION="{{.Version}}"` ,
6156 },
6257 },
6358 "hack/jenkins/installers/check_install_cni_plugins.sh" : {
6459 Replace : map [string ]string {
65- `CNI_PLUGIN_VERSION="v[0-9.]+" ` : `CNI_PLUGIN_VERSION="{{.Version}}"` ,
60+ `CNI_PLUGIN_VERSION=.* ` : `CNI_PLUGIN_VERSION="{{.Version}}"` ,
6661 },
6762 },
6863 }
@@ -83,7 +78,9 @@ func main() {
8378
8479 data := Data {Version : stable .Tag }
8580
86- update .Apply (schema , data )
81+ if err := update .Apply (schema , data ); err != nil {
82+ klog .Fatalf ("unable to apply update: %v" , err )
83+ }
8784
8885 if err := updateHashFile (data .Version , "arm64" , "aarch64/package/cni-plugins-latest-aarch64" ); err != nil {
8986 klog .Fatalf ("failed to update hash files: %v" , err )
0 commit comments