mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
Merge pull request #126395 from bzsuni/automated-cherry-pick-of-#126240-#126242-upstream-release-1.30
Automated cherry pick of #126240: Update etcd from v3.5.14 to v3.5.15 #126242: Build etcd image of v3.5.15
This commit is contained in:
commit
e33ca0de16
@ -64,7 +64,7 @@ dependencies:
|
|||||||
|
|
||||||
# etcd
|
# etcd
|
||||||
- name: "etcd"
|
- name: "etcd"
|
||||||
version: 3.5.12
|
version: 3.5.15
|
||||||
refPaths:
|
refPaths:
|
||||||
- path: cluster/gce/manifests/etcd.manifest
|
- path: cluster/gce/manifests/etcd.manifest
|
||||||
match: etcd_docker_tag|etcd_version
|
match: etcd_docker_tag|etcd_version
|
||||||
@ -80,7 +80,7 @@ dependencies:
|
|||||||
match: configs\[Etcd\] = Config{list\.GcEtcdRegistry, "etcd", "\d+\.\d+.\d+(-(alpha|beta|rc).\d+)?(-\d+)?"}
|
match: configs\[Etcd\] = Config{list\.GcEtcdRegistry, "etcd", "\d+\.\d+.\d+(-(alpha|beta|rc).\d+)?(-\d+)?"}
|
||||||
|
|
||||||
- name: "etcd-image"
|
- name: "etcd-image"
|
||||||
version: 3.5.12
|
version: 3.5.15
|
||||||
refPaths:
|
refPaths:
|
||||||
- path: cluster/images/etcd/Makefile
|
- path: cluster/images/etcd/Makefile
|
||||||
match: BUNDLED_ETCD_VERSIONS\?|LATEST_ETCD_VERSION\?
|
match: BUNDLED_ETCD_VERSIONS\?|LATEST_ETCD_VERSION\?
|
||||||
@ -109,7 +109,7 @@ dependencies:
|
|||||||
|
|
||||||
# From https://github.com/etcd-io/etcd/blob/main/Makefile
|
# From https://github.com/etcd-io/etcd/blob/main/Makefile
|
||||||
- name: "golang: etcd release version"
|
- name: "golang: etcd release version"
|
||||||
version: 1.20.13 # https://github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.5.md
|
version: 1.21.12 # https://github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.5.md
|
||||||
refPaths:
|
refPaths:
|
||||||
- path: cluster/images/etcd/Makefile
|
- path: cluster/images/etcd/Makefile
|
||||||
match: 'GOLANG_VERSION := \d+.\d+(alpha|beta|rc)?\.?(\d+)?'
|
match: 'GOLANG_VERSION := \d+.\d+(alpha|beta|rc)?\.?(\d+)?'
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
"name": "etcd-container",
|
"name": "etcd-container",
|
||||||
{{security_context}}
|
{{security_context}}
|
||||||
"image": "{{ pillar.get('etcd_docker_repository', 'registry.k8s.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.5.12-0') }}",
|
"image": "{{ pillar.get('etcd_docker_repository', 'registry.k8s.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.5.15-0') }}",
|
||||||
"resources": {
|
"resources": {
|
||||||
"requests": {
|
"requests": {
|
||||||
"cpu": {{ cpulimit }}
|
"cpu": {{ cpulimit }}
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"value": "{{ pillar.get('storage_backend', 'etcd3') }}"
|
"value": "{{ pillar.get('storage_backend', 'etcd3') }}"
|
||||||
},
|
},
|
||||||
{ "name": "TARGET_VERSION",
|
{ "name": "TARGET_VERSION",
|
||||||
"value": "{{ pillar.get('etcd_version', '3.5.12') }}"
|
"value": "{{ pillar.get('etcd_version', '3.5.15') }}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "DO_NOT_MOVE_BINARIES",
|
"name": "DO_NOT_MOVE_BINARIES",
|
||||||
|
@ -170,8 +170,8 @@ export KUBE_GCE_ENABLE_IP_ALIASES=true
|
|||||||
export SECONDARY_RANGE_NAME="pods-default"
|
export SECONDARY_RANGE_NAME="pods-default"
|
||||||
export STORAGE_BACKEND="etcd3"
|
export STORAGE_BACKEND="etcd3"
|
||||||
export STORAGE_MEDIA_TYPE="application/vnd.kubernetes.protobuf"
|
export STORAGE_MEDIA_TYPE="application/vnd.kubernetes.protobuf"
|
||||||
export ETCD_IMAGE=3.5.12-0
|
export ETCD_IMAGE=3.5.15-0
|
||||||
export ETCD_VERSION=3.5.12
|
export ETCD_VERSION=3.5.15
|
||||||
|
|
||||||
# Upgrade master with updated kube envs
|
# Upgrade master with updated kube envs
|
||||||
"${KUBE_ROOT}/cluster/gce/upgrade.sh" -M -l
|
"${KUBE_ROOT}/cluster/gce/upgrade.sh" -M -l
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# Build the etcd image
|
# Build the etcd image
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# [BUNDLED_ETCD_VERSIONS=3.4.18 3.5.8] [REGISTRY=registry.k8s.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
|
# [BUNDLED_ETCD_VERSIONS=3.4.18 3.5.15] [REGISTRY=registry.k8s.io] [ARCH=amd64] [BASEIMAGE=busybox] make (build|push)
|
||||||
#
|
#
|
||||||
# The image contains different etcd versions to simplify
|
# The image contains different etcd versions to simplify
|
||||||
# upgrades. Thus be careful when removing any versions from here.
|
# upgrades. Thus be careful when removing any versions from here.
|
||||||
@ -26,10 +26,10 @@
|
|||||||
# Except from etcd-$(version) and etcdctl-$(version) binaries, we also
|
# Except from etcd-$(version) and etcdctl-$(version) binaries, we also
|
||||||
# need etcd and etcdctl binaries for backward compatibility reasons.
|
# need etcd and etcdctl binaries for backward compatibility reasons.
|
||||||
# That binary will be set to the last version from $(BUNDLED_ETCD_VERSIONS).
|
# That binary will be set to the last version from $(BUNDLED_ETCD_VERSIONS).
|
||||||
BUNDLED_ETCD_VERSIONS?=3.4.18 3.5.12
|
BUNDLED_ETCD_VERSIONS?=3.4.18 3.5.15
|
||||||
|
|
||||||
# LATEST_ETCD_VERSION identifies the most recent etcd version available.
|
# LATEST_ETCD_VERSION identifies the most recent etcd version available.
|
||||||
LATEST_ETCD_VERSION?=3.5.12
|
LATEST_ETCD_VERSION?=3.5.15
|
||||||
|
|
||||||
# REVISION provides a version number for this image and all it's bundled
|
# REVISION provides a version number for this image and all it's bundled
|
||||||
# artifacts. It should start at zero for each LATEST_ETCD_VERSION and increment
|
# artifacts. It should start at zero for each LATEST_ETCD_VERSION and increment
|
||||||
@ -83,7 +83,7 @@ endif
|
|||||||
# This option is for running docker manifest command
|
# This option is for running docker manifest command
|
||||||
export DOCKER_CLI_EXPERIMENTAL := enabled
|
export DOCKER_CLI_EXPERIMENTAL := enabled
|
||||||
# golang version should match the golang version of the official build from https://github.com/etcd-io/etcd/releases.
|
# golang version should match the golang version of the official build from https://github.com/etcd-io/etcd/releases.
|
||||||
GOLANG_VERSION := 1.20.13
|
GOLANG_VERSION := 1.21.12
|
||||||
GOARM?=7
|
GOARM?=7
|
||||||
TEMP_DIR:=$(shell mktemp -d)
|
TEMP_DIR:=$(shell mktemp -d)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
supportedEtcdVersions = []string{"3.4.18", "3.5.12"}
|
supportedEtcdVersions = []string{"3.4.18", "3.5.15"}
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -320,7 +320,7 @@ const (
|
|||||||
MinExternalEtcdVersion = "3.4.13-4"
|
MinExternalEtcdVersion = "3.4.13-4"
|
||||||
|
|
||||||
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
|
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
|
||||||
DefaultEtcdVersion = "3.5.12-0"
|
DefaultEtcdVersion = "3.5.15-0"
|
||||||
|
|
||||||
// Etcd defines variable used internally when referring to etcd component
|
// Etcd defines variable used internally when referring to etcd component
|
||||||
Etcd = "etcd"
|
Etcd = "etcd"
|
||||||
@ -479,15 +479,16 @@ var (
|
|||||||
|
|
||||||
// SupportedEtcdVersion lists officially supported etcd versions with corresponding Kubernetes releases
|
// SupportedEtcdVersion lists officially supported etcd versions with corresponding Kubernetes releases
|
||||||
SupportedEtcdVersion = map[uint8]string{
|
SupportedEtcdVersion = map[uint8]string{
|
||||||
22: "3.5.12-0",
|
22: "3.5.15-0",
|
||||||
23: "3.5.12-0",
|
23: "3.5.15-0",
|
||||||
24: "3.5.12-0",
|
24: "3.5.15-0",
|
||||||
25: "3.5.12-0",
|
25: "3.5.15-0",
|
||||||
26: "3.5.12-0",
|
26: "3.5.15-0",
|
||||||
27: "3.5.12-0",
|
27: "3.5.15-0",
|
||||||
28: "3.5.12-0",
|
28: "3.5.15-0",
|
||||||
29: "3.5.12-0",
|
29: "3.5.15-0",
|
||||||
30: "3.5.12-0",
|
30: "3.5.15-0",
|
||||||
|
31: "3.5.15-0",
|
||||||
}
|
}
|
||||||
|
|
||||||
// KubeadmCertsClusterRoleName sets the name for the ClusterRole that allows
|
// KubeadmCertsClusterRoleName sets the name for the ClusterRole that allows
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# A set of helpers for starting/running etcd for tests
|
# A set of helpers for starting/running etcd for tests
|
||||||
|
|
||||||
ETCD_VERSION=${ETCD_VERSION:-3.5.12}
|
ETCD_VERSION=${ETCD_VERSION:-3.5.15}
|
||||||
ETCD_HOST=${ETCD_HOST:-127.0.0.1}
|
ETCD_HOST=${ETCD_HOST:-127.0.0.1}
|
||||||
ETCD_PORT=${ETCD_PORT:-2379}
|
ETCD_PORT=${ETCD_PORT:-2379}
|
||||||
# This is intentionally not called ETCD_LOG_LEVEL:
|
# This is intentionally not called ETCD_LOG_LEVEL:
|
||||||
|
@ -26,4 +26,4 @@ spec:
|
|||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
args: [ "--etcd-servers=http://localhost:2379" ]
|
args: [ "--etcd-servers=http://localhost:2379" ]
|
||||||
- name: etcd
|
- name: etcd
|
||||||
image: gcr.io/etcd-development/etcd:v3.5.12
|
image: gcr.io/etcd-development/etcd:v3.5.15
|
@ -238,7 +238,7 @@ func initImageConfigs(list RegistryList) (map[ImageID]Config, map[ImageID]Config
|
|||||||
configs[CudaVectorAdd] = Config{list.PromoterE2eRegistry, "cuda-vector-add", "1.0"}
|
configs[CudaVectorAdd] = Config{list.PromoterE2eRegistry, "cuda-vector-add", "1.0"}
|
||||||
configs[CudaVectorAdd2] = Config{list.PromoterE2eRegistry, "cuda-vector-add", "2.3"}
|
configs[CudaVectorAdd2] = Config{list.PromoterE2eRegistry, "cuda-vector-add", "2.3"}
|
||||||
configs[DistrolessIptables] = Config{list.BuildImageRegistry, "distroless-iptables", "v0.5.7"}
|
configs[DistrolessIptables] = Config{list.BuildImageRegistry, "distroless-iptables", "v0.5.7"}
|
||||||
configs[Etcd] = Config{list.GcEtcdRegistry, "etcd", "3.5.12-0"}
|
configs[Etcd] = Config{list.GcEtcdRegistry, "etcd", "3.5.15-0"}
|
||||||
configs[Httpd] = Config{list.PromoterE2eRegistry, "httpd", "2.4.38-4"}
|
configs[Httpd] = Config{list.PromoterE2eRegistry, "httpd", "2.4.38-4"}
|
||||||
configs[HttpdNew] = Config{list.PromoterE2eRegistry, "httpd", "2.4.39-4"}
|
configs[HttpdNew] = Config{list.PromoterE2eRegistry, "httpd", "2.4.39-4"}
|
||||||
configs[InvalidRegistryImage] = Config{list.InvalidRegistry, "alpine", "3.1"}
|
configs[InvalidRegistryImage] = Config{list.InvalidRegistry, "alpine", "3.1"}
|
||||||
|
Loading…
Reference in New Issue
Block a user