Skip to content

Commit

Permalink
mirrored pause backport (#4827)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandowns authored Oct 3, 2023
1 parent 0618728 commit 7940d51
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion developer-docs/updating_rke2_charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ xargs -n1 -t docker image pull --quiet << EOF >> build/images-core.txt
${REGISTRY}/rancher/hardened-etcd:${ETCD_VERSION}-build20220413
${REGISTRY}/rancher/hardened-k8s-metrics-server:v0.5.0-build20210915
${REGISTRY}/rancher/klipper-helm:v0.6.1-build20210616
${REGISTRY}/rancher/pause:${PAUSE_VERSION}
${REGISTRY}/rancher/mirrored-pause:${PAUSE_VERSION}
${REGISTRY}/rancher/mirrored-jettech-kube-webhook-certgen:v1.5.1
${REGISTRY}/rancher/nginx-ingress-controller:nginx-0.47.0-hardened1
${REGISTRY}/rancher/rke2-cloud-provider:${CCM_VERSION}
Expand Down
2 changes: 1 addition & 1 deletion pkg/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
DefaultRegistry = name.DefaultRegistry
DefaultEtcdImage = "rancher/hardened-etcd"
DefaultKubernetesImage = "rancher/hardened-kubernetes"
DefaultPauseImage = "rancher/pause"
DefaultPauseImage = "rancher/mirrored-pause"
DefaultRuntimeImage = "rancher/rke2-runtime"
DefaultCloudControllerManagerImage = "rancher/rke2-cloud-provider"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-binary
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ VERSION_FLAGS="
-X ${RKE2_PKG}/pkg/images.DefaultRegistry=${REGISTRY}
-X ${RKE2_PKG}/pkg/images.DefaultEtcdImage=rancher/hardened-etcd:${ETCD_VERSION}-build20230802
-X ${RKE2_PKG}/pkg/images.DefaultKubernetesImage=rancher/hardened-kubernetes:${KUBERNETES_IMAGE_TAG}
-X ${RKE2_PKG}/pkg/images.DefaultPauseImage=rancher/pause:${PAUSE_VERSION}
-X ${RKE2_PKG}/pkg/images.DefaultPauseImage=rancher/mirrored-pause:${PAUSE_VERSION}
-X ${RKE2_PKG}/pkg/images.DefaultRuntimeImage=${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}
-X ${RKE2_PKG}/pkg/images.DefaultCloudControllerManagerImage=rancher/rke2-cloud-provider:${CCM_VERSION}
"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-images
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ xargs -n1 -t docker image pull --quiet << EOF >> build/images-core.txt
${REGISTRY}/rancher/hardened-k8s-metrics-server:v0.6.3-build20230515
${REGISTRY}/rancher/klipper-helm:v0.8.2-build20230815
${REGISTRY}/rancher/klipper-lb:v0.4.4
${REGISTRY}/rancher/pause:${PAUSE_VERSION}
${REGISTRY}/rancher/mirrored-pause:${PAUSE_VERSION}
${REGISTRY}/rancher/mirrored-ingress-nginx-kube-webhook-certgen:v20230312-helm-chart-4.5.2-28-g66a760794
${REGISTRY}/rancher/nginx-ingress-controller:nginx-1.7.1-hardened1
${REGISTRY}/rancher/rke2-cloud-provider:${CCM_VERSION}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-windows-binary
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ VERSION_FLAGS="
-X ${RKE2_PKG}/pkg/images.DefaultRegistry=${REGISTRY}
-X ${RKE2_PKG}/pkg/images.DefaultEtcdImage=rancher/hardened-etcd:${ETCD_VERSION}-build20230802
-X ${RKE2_PKG}/pkg/images.DefaultKubernetesImage=${REPO}/hardened-kubernetes:${KUBERNETES_IMAGE_TAG}
-X ${RKE2_PKG}/pkg/images.DefaultPauseImage=rancher/pause:${PAUSE_VERSION}
-X ${RKE2_PKG}/pkg/images.DefaultPauseImage=rancher/mirrored-pause:${PAUSE_VERSION}
-X ${RKE2_PKG}/pkg/images.DefaultRuntimeImage=${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-${GOOS}-${GOARCH}
"

Expand Down
2 changes: 1 addition & 1 deletion scripts/build-windows-images
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi

mkdir -p build

WINDOWS_IMAGES=(${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 rancher/pause:${PAUSE_VERSION}-windows-1809-amd64 rancher/pause:${PAUSE_VERSION}-windows-ltsc2022-amd64)
WINDOWS_IMAGES=(${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 rancher/mirrored-pause:${PAUSE_VERSION}-windows-1809-amd64 rancher/mirrored-pause:${PAUSE_VERSION}-windows-ltsc2022-amd64)
for IMAGE in "${WINDOWS_IMAGES[@]}"; do
echo "${IMAGE}" >> build/windows-images.txt
done
4 changes: 2 additions & 2 deletions scripts/package-windows-images
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ mkdir -p dist/artifacts
# 1809/LTSC
crane --platform windows/amd64 pull \
${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 \
rancher/pause:${PAUSE_VERSION}-windows-1809-amd64 \
rancher/mirrored-pause:${PAUSE_VERSION}-windows-1809-amd64 \
rke2-windows-1809-amd64-images.tar

# 2022/LTSC
crane --platform windows/amd64 pull \
${REGISTRY}/${REPO}/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64 \
rancher/pause:${PAUSE_VERSION}-windows-ltsc2022-amd64 \
rancher/mirrored-pause:${PAUSE_VERSION}-windows-ltsc2022-amd64 \
rke2-windows-ltsc2022-amd64-images.tar

WINDOWS_TARFILES=(rke2-windows-1809-amd64-images.tar rke2-windows-ltsc2022-amd64-images.tar)
Expand Down

0 comments on commit 7940d51

Please sign in to comment.