Skip to content

Commit 37fea8b

Browse files
committed
fix update-cni-plugins-version
1 parent 9992f45 commit 37fea8b

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

hack/update/cni_plugins_version/cni_plugins_version.go

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ const cxTimeout = 5 * time.Minute
3535

3636
var (
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
}

0 commit comments

Comments
 (0)