Skip to content

Commit e5f848d

Browse files
saschagrunertrichabanker
authored andcommitted
Update CNI plugins to v1.6.2 and avoid using k8s-artifacts-cni bucket
Updating the CNI plugins to the latest release and switch over to use GitHub releases instead of the `k8s-artifacts-cni` bucket. Follow-up on kubernetes#129095 Signed-off-by: Sascha Grunert <[email protected]>
1 parent f63d9f8 commit e5f848d

File tree

7 files changed

+9
-13
lines changed

7 files changed

+9
-13
lines changed

build/dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818

1919
# CNI plugins
2020
- name: "cni"
21-
version: 1.6.0
21+
version: 1.6.2
2222
refPaths:
2323
- path: cluster/gce/config-common.sh
2424
match: WINDOWS_CNI_VERSION=

cluster/gce/config-common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ export WINDOWS_CNI_DIR="${WINDOWS_K8S_DIR}\cni"
134134
# Directory where CNI config files will be stored on Windows nodes.
135135
export WINDOWS_CNI_CONFIG_DIR="${WINDOWS_K8S_DIR}\cni\config"
136136
# CNI storage path for Windows nodes
137-
export WINDOWS_CNI_STORAGE_PATH="https://storage.googleapis.com/k8s-artifacts-cni/release"
137+
export WINDOWS_CNI_STORAGE_PATH="https://github.com/containernetworking/plugins/releases/download"
138138
# CNI version for Windows nodes
139-
export WINDOWS_CNI_VERSION="v1.6.0"
139+
export WINDOWS_CNI_VERSION="v1.6.2"
140140
# Pod manifests directory for Windows nodes on Windows nodes.
141141
export WINDOWS_MANIFESTS_DIR="${WINDOWS_K8S_DIR}\manifests"
142142
# Directory where cert/key files will be stores on Windows nodes.

cluster/gce/config-default.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS="${NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS:-}"
300300

301301
CNI_HASH="${CNI_HASH:-}"
302302
CNI_TAR_PREFIX="${CNI_TAR_PREFIX:-cni-plugins-linux-amd64-}"
303-
CNI_STORAGE_URL_BASE="${CNI_STORAGE_URL_BASE:-https://storage.googleapis.com/k8s-artifacts-cni/release}"
303+
CNI_STORAGE_URL_BASE="${CNI_STORAGE_URL_BASE:-https://github.com/containernetworking/plugins/releases/download}"
304304

305305
# Optional: Create autoscaler for cluster's nodes.
306306
ENABLE_CLUSTER_AUTOSCALER="${KUBE_ENABLE_CLUSTER_AUTOSCALER:-false}"

cluster/gce/config-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS=${NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS:-}
342342

343343
CNI_HASH=${CNI_HASH:-}
344344
CNI_TAR_PREFIX=${CNI_TAR_PREFIX:-cni-plugins-linux-amd64-}
345-
CNI_STORAGE_URL_BASE=${CNI_STORAGE_URL_BASE:-https://storage.googleapis.com/k8s-artifacts-cni/release}
345+
CNI_STORAGE_URL_BASE=${CNI_STORAGE_URL_BASE:-https://github.com/containernetworking/plugins/releases/download}
346346

347347
# Optional: Create autoscaler for cluster's nodes.
348348
export ENABLE_CLUSTER_AUTOSCALER=${KUBE_ENABLE_CLUSTER_AUTOSCALER:-false}

cluster/gce/gci/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ set -o nounset
2424
set -o pipefail
2525

2626
### Hardcoded constants
27-
DEFAULT_CNI_VERSION='v1.6.0'
28-
DEFAULT_CNI_HASH='3d9f34a43e0550d9f4f28c724e25bc5cfcfc601c329586bafe4910c3c72f918055151066e71e14e157276138e358344a1d815d957646df43a86d3673ab2849c3'
27+
DEFAULT_CNI_VERSION='v1.6.2'
28+
DEFAULT_CNI_HASH='23036eea642c55cd38d6a2d8f18837fac78e3d2bc6ec86dc2047dad5e51323efdc8dfd0482ac78fe9f117e4e630d0015e190e4a6a3544fc50dc59e5083459629'
2929
DEFAULT_NPD_VERSION='v0.8.20'
3030
DEFAULT_NPD_HASH_AMD64='09029b62f8023885f3a856c20b5fafecabb880806467848ae25f578c4ee6afacd97c85a0c2d0c582c8d79d3716c83d0e7d324073c5816ae5a812812a6f21450b'
3131
DEFAULT_NPD_HASH_ARM64='233f7e4451de920b7ce8b0ac0e46da1a07ef559e628a75746ce7927492a1886ebd007875f76462d2d0bf3b1dc807a7e8321108cafbd7db9eee39c0e2cfb6c051'

hack/local-up-cluster.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,10 @@ LIMITED_SWAP=${LIMITED_SWAP:-""}
5656

5757
# required for cni installation
5858
CNI_CONFIG_DIR=${CNI_CONFIG_DIR:-/etc/cni/net.d}
59-
CNI_PLUGINS_VERSION=${CNI_PLUGINS_VERSION:-"v1.6.0"}
59+
CNI_PLUGINS_VERSION=${CNI_PLUGINS_VERSION:-"v1.6.2"}
6060
# The arch of the CNI binary, if not set, will be fetched based on the value of `uname -m`
6161
CNI_TARGETARCH=${CNI_TARGETARCH:-""}
6262
CNI_PLUGINS_URL="https://github.com/containernetworking/plugins/releases/download"
63-
CNI_PLUGINS_AMD64_SHA256SUM=${CNI_PLUGINS_AMD64_SHA256SUM:-"57a18478422cb321370e30a5ee6ce026321289cd9c94353ca697dddd7714f1a5"}
64-
CNI_PLUGINS_ARM64_SHA256SUM=${CNI_PLUGINS_ARM64_SHA256SUM:-"ab38507efe50c34bc2242a25c5783c19fdfe0376c65a2a91d48174d4f39f1fc2"}
65-
CNI_PLUGINS_PPC64LE_SHA256SUM=${CNI_PLUGINS_PPC64LE_SHA256SUM:-"5eea6e7033a337fd98df00fa8a72a8ca8d2d2c69f6637555828515de94158cab"}
66-
CNI_PLUGINS_S390X_SHA256SUM=${CNI_PLUGINS_S390X_SHA256SUM:-"3d1b56d8b357ee593866cd9342a61fc797852da9ff75ae5ed7b5de125a30b253"}
6763

6864
# enables testing eviction scenarios locally.
6965
EVICTION_HARD=${EVICTION_HARD:-"imagefs.available<15%,memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5%"}

test/e2e_node/remote/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
// utils.go contains functions used across test suites.
2929

3030
const (
31-
cniVersion = "v1.6.0"
31+
cniVersion = "v1.6.2"
3232
cniDirectory = "cni/bin" // The CNI tarball places binaries under directory under "cni/bin".
3333
cniConfDirectory = "cni/net.d"
3434

0 commit comments

Comments
 (0)