mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #125113 from bzsuni/bz/build/cni
update cni from 1.4.1 to 1.5.0
This commit is contained in:
		@@ -18,7 +18,7 @@ dependencies:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  # CNI plugins
 | 
					  # CNI plugins
 | 
				
			||||||
  - name: "cni"
 | 
					  - name: "cni"
 | 
				
			||||||
    version: 1.4.1
 | 
					    version: 1.5.0
 | 
				
			||||||
    refPaths:
 | 
					    refPaths:
 | 
				
			||||||
    - path: cluster/gce/config-common.sh
 | 
					    - path: cluster/gce/config-common.sh
 | 
				
			||||||
      match: WINDOWS_CNI_VERSION=
 | 
					      match: WINDOWS_CNI_VERSION=
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -136,7 +136,7 @@ export WINDOWS_CNI_CONFIG_DIR="${WINDOWS_K8S_DIR}\cni\config"
 | 
				
			|||||||
# CNI storage path for Windows nodes
 | 
					# CNI storage path for Windows nodes
 | 
				
			||||||
export WINDOWS_CNI_STORAGE_PATH="https://storage.googleapis.com/k8s-artifacts-cni/release"
 | 
					export WINDOWS_CNI_STORAGE_PATH="https://storage.googleapis.com/k8s-artifacts-cni/release"
 | 
				
			||||||
# CNI version for Windows nodes
 | 
					# CNI version for Windows nodes
 | 
				
			||||||
export WINDOWS_CNI_VERSION="v1.4.1"
 | 
					export WINDOWS_CNI_VERSION="v1.5.0"
 | 
				
			||||||
# Pod manifests directory for Windows nodes on Windows nodes.
 | 
					# Pod manifests directory for Windows nodes on Windows nodes.
 | 
				
			||||||
export WINDOWS_MANIFESTS_DIR="${WINDOWS_K8S_DIR}\manifests"
 | 
					export WINDOWS_MANIFESTS_DIR="${WINDOWS_K8S_DIR}\manifests"
 | 
				
			||||||
# Directory where cert/key files will be stores on Windows nodes.
 | 
					# Directory where cert/key files will be stores on Windows nodes.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,8 +24,8 @@ set -o nounset
 | 
				
			|||||||
set -o pipefail
 | 
					set -o pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Hardcoded constants
 | 
					### Hardcoded constants
 | 
				
			||||||
DEFAULT_CNI_VERSION='v1.4.1'
 | 
					DEFAULT_CNI_VERSION='v1.5.0'
 | 
				
			||||||
DEFAULT_CNI_HASH='5cff10005288a78b484bbabbaa24669d62a6eedb6cc7c7604b2c1ea14b65e90a1b022c2a2975d7764ec41f24707f6349432e8f11564d03cea0da141195b0602e'
 | 
					DEFAULT_CNI_HASH='7e3d34d2de37a8fe72278ea796fcbe763e9e7f241ed1a6d3c5a9f613fe5895bf3bbea05e0b651d9e4d0e1c427a7b42f0ff5c07d29abfc2aee9967136347451bd'
 | 
				
			||||||
DEFAULT_NPD_VERSION='v0.8.16'
 | 
					DEFAULT_NPD_VERSION='v0.8.16'
 | 
				
			||||||
DEFAULT_NPD_HASH_AMD64='6d7c9a8e07d95085ef949373e2019df67b2c717aa3b8043eb7c63ac6a679e7894b0f6efea98354f0059001a35966353220613936ace499ad97b96b7c04f693d8'
 | 
					DEFAULT_NPD_HASH_AMD64='6d7c9a8e07d95085ef949373e2019df67b2c717aa3b8043eb7c63ac6a679e7894b0f6efea98354f0059001a35966353220613936ace499ad97b96b7c04f693d8'
 | 
				
			||||||
DEFAULT_NPD_HASH_ARM64='8c6a61a92e846b2b6c844bac51f34fd90a97fe7109bc3d16520370b944b9a2d1b117c0d1d95464f374354700f4697baaa41265d44e233996b63ef4e5ae450b24'
 | 
					DEFAULT_NPD_HASH_ARM64='8c6a61a92e846b2b6c844bac51f34fd90a97fe7109bc3d16520370b944b9a2d1b117c0d1d95464f374354700f4697baaa41265d44e233996b63ef4e5ae450b24'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,14 +56,14 @@ LIMITED_SWAP=${LIMITED_SWAP:-""}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# required for cni installation
 | 
					# required for cni installation
 | 
				
			||||||
CNI_CONFIG_DIR=${CNI_CONFIG_DIR:-/etc/cni/net.d}
 | 
					CNI_CONFIG_DIR=${CNI_CONFIG_DIR:-/etc/cni/net.d}
 | 
				
			||||||
CNI_PLUGINS_VERSION=${CNI_PLUGINS_VERSION:-"v1.4.1"}
 | 
					CNI_PLUGINS_VERSION=${CNI_PLUGINS_VERSION:-"v1.5.0"}
 | 
				
			||||||
# The arch of the CNI binary, if not set, will be fetched based on the value of `uname -m`
 | 
					# The arch of the CNI binary, if not set, will be fetched based on the value of `uname -m`
 | 
				
			||||||
CNI_TARGETARCH=${CNI_TARGETARCH:-""}
 | 
					CNI_TARGETARCH=${CNI_TARGETARCH:-""}
 | 
				
			||||||
CNI_PLUGINS_URL="https://github.com/containernetworking/plugins/releases/download"
 | 
					CNI_PLUGINS_URL="https://github.com/containernetworking/plugins/releases/download"
 | 
				
			||||||
CNI_PLUGINS_AMD64_SHA256SUM=${CNI_PLUGINS_AMD64_SHA256SUM:-"754a71ed60a4bd08726c3af705a7d55ee3df03122b12e389fdba4bea35d7dd7e"}
 | 
					CNI_PLUGINS_AMD64_SHA256SUM=${CNI_PLUGINS_AMD64_SHA256SUM:-"57a18478422cb321370e30a5ee6ce026321289cd9c94353ca697dddd7714f1a5"}
 | 
				
			||||||
CNI_PLUGINS_ARM64_SHA256SUM=${CNI_PLUGINS_ARM64_SHA256SUM:-"de7a666fd6ad83a228086bd55756db62ef335a193d1b143d910b69f079e30598"}
 | 
					CNI_PLUGINS_ARM64_SHA256SUM=${CNI_PLUGINS_ARM64_SHA256SUM:-"ab38507efe50c34bc2242a25c5783c19fdfe0376c65a2a91d48174d4f39f1fc2"}
 | 
				
			||||||
CNI_PLUGINS_PPC64LE_SHA256SUM=${CNI_PLUGINS_PPC64LE_SHA256SUM:-"8ceff026f4eccf33c261b4153af6911e10784ac169d08c1d86cf6887b9f4e99b"}
 | 
					CNI_PLUGINS_PPC64LE_SHA256SUM=${CNI_PLUGINS_PPC64LE_SHA256SUM:-"5eea6e7033a337fd98df00fa8a72a8ca8d2d2c69f6637555828515de94158cab"}
 | 
				
			||||||
CNI_PLUGINS_S390X_SHA256SUM=${CNI_PLUGINS_S390X_SHA256SUM:-"2f1f65ac33e961bcdc633e14c376656455824e22cc45d3ca7e31eb2750a7ebc4"}
 | 
					CNI_PLUGINS_S390X_SHA256SUM=${CNI_PLUGINS_S390X_SHA256SUM:-"3d1b56d8b357ee593866cd9342a61fc797852da9ff75ae5ed7b5de125a30b253"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# enables testing eviction scenarios locally.
 | 
					# enables testing eviction scenarios locally.
 | 
				
			||||||
EVICTION_HARD=${EVICTION_HARD:-"imagefs.available<15%,memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5%"}
 | 
					EVICTION_HARD=${EVICTION_HARD:-"imagefs.available<15%,memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5%"}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@ import (
 | 
				
			|||||||
// utils.go contains functions used across test suites.
 | 
					// utils.go contains functions used across test suites.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	cniVersion       = "v1.4.1"
 | 
						cniVersion       = "v1.5.0"
 | 
				
			||||||
	cniDirectory     = "cni/bin" // The CNI tarball places binaries under directory under "cni/bin".
 | 
						cniDirectory     = "cni/bin" // The CNI tarball places binaries under directory under "cni/bin".
 | 
				
			||||||
	cniConfDirectory = "cni/net.d"
 | 
						cniConfDirectory = "cni/net.d"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user