Skip to content

Commit

Permalink
Merge pull request #1050 from tu1h/fix_upstream_breakchange
Browse files Browse the repository at this point in the history
Fix upstream breaking-change #10626
  • Loading branch information
ErikJiang authored Dec 13, 2023
2 parents ad6ae06 + 7af18bb commit 2e9c5aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions artifacts/manage_version_cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ function create_manifest_cr() {
}

function merge_kubespray_offline_download_files() {
if [ -d 'kubespray/roles/kubespray-defaults/defaults/main' ]; then
mkdir -p kubespray/roles/download/defaults
cat kubespray/roles/kubespray-defaults/defaults/main/* | sed '/^---$/d' > kubespray/roles/download/defaults/main.yml
fi
if [ -d 'kubespray/roles/download/defaults/main' ]; then
cat kubespray/roles/download/defaults/main/* | sed '/^---$/d' > kubespray/roles/download/defaults/main.yml
fi
Expand Down
6 changes: 5 additions & 1 deletion build/images/kubespray/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ RUN /usr/bin/python3 -m pip install --no-cache-dir pip -U \
&& python3 -m pip install --no-cache-dir -r requirements.txt

RUN ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" \
&& KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main.yaml) \
&& if [ -d 'roles/kubespray-defaults/defaults/main' ]; then \
KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main/main.yml); \
else \
KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main.yaml); \
fi \
&& curl -LO https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$ARCH/kubectl \
&& curl -LO https://github.com/mikefarah/yq/releases/download/v4.25.2/yq_linux_$ARCH \
&& chmod a+x kubectl yq_linux_$ARCH \
Expand Down

0 comments on commit 2e9c5aa

Please sign in to comment.