Skip to content

Commit

Permalink
BUG: Bump back from 2404 to 2204
Browse files Browse the repository at this point in the history
Compatibility with 2404 is flakey, on reboot the machine no longer
accepts password based auth which causes the K8s-image-builder and
packer to hang.

This is racey so sometimes it will pass with 2404, so use 2204 which is
reliable
  • Loading branch information
DavidFair committed Nov 19, 2024
1 parent a90d23d commit 9d55a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cluster-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export ANSIBLE_ROLES_PATH="$(pwd)/os_builders/roles:$(pwd)/cluster-api/roles"
export PACKER_VAR_FILES="$(pwd)/cluster-api/ansible_stfc_roles.json"

# Run build
make -C k8s-image-builder/images/capi build-qemu-ubuntu-2404
make -C k8s-image-builder/images/capi build-qemu-ubuntu-2204
```

Building a custom version
Expand All @@ -75,7 +75,7 @@ export ROLE_DEFINITION="cluster-api/ansible_stfc_roles.json"

export PACKER_VAR_FILES="$(pwd)/${K8S_VERSION} $(pwd)/${ROLE_DEFINITION}"

make -C k8s-image-builder/images/capi build-qemu-ubuntu-2404
make -C k8s-image-builder/images/capi build-qemu-ubuntu-2204
```

Adding a new version
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ VERSIONS=( "${REPO_ROOT}"/cluster-api/versions/*.json )
for version_path in "${VERSIONS[@]}"; do
echo "Building image for version: ${version_path}..." && \
export PACKER_VAR_FILES="${CUSTOM_ROLE_PATH} ${version_path}" && \
make -C "${REPO_ROOT}/k8s-image-builder/images/capi" build-qemu-ubuntu-2404 &
make -C "${REPO_ROOT}/k8s-image-builder/images/capi" build-qemu-ubuntu-2204 &
done

0 comments on commit 9d55a30

Please sign in to comment.