-
Notifications
You must be signed in to change notification settings - Fork 136
[kubernetes] Update tenant Kubernetes to v1.32 #871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis change updates the Kubernetes version references across the build and deployment files in the Kubernetes app package. The Makefile now uses a Changes
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
⏰ Context from checks skipped due to timeout of 90000ms (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
packages/apps/kubernetes/Makefile (1)
24-25:⚠️ Potential issueFix outdated variable reference in echo command
The echo still uses$(UBUNTU_CONTAINER_DISK_TAG), which no longer exists. Update it to use$(KUBERNETES_VERSION)instead.Apply this diff:
- echo "$(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG))@$$(yq e '."containerimage.digest"' images/ubuntu-container-disk.json -o json -r)" \ + echo "$(REGISTRY)/ubuntu-container-disk:$(call settag,$(KUBERNETES_VERSION))@$$(yq e '."containerimage.digest"' images/ubuntu-container-disk.json -o json -r)" \ > images/ubuntu-container-disk.tag
🧹 Nitpick comments (3)
packages/apps/kubernetes/images/ubuntu-container-disk/Dockerfile (2)
18-19: IntroduceKUBERNETES_VERSIONbuild argument
Parameterizing the Kubernetes version is a solid improvement. Consider providing a default value (e.g.,ARG KUBERNETES_VERSION=v1.32) and updating documentation or comments to reflect this new build-time parameter.
31-32: Dynamic Kubernetes APT repository setup—escape variables safely
You’re using theKUBERNETES_VERSIONvariable within shell commands. To prevent accidental word-splitting or globbing, quote the variable usage inside the sh invocation:- && guestfish --remote sh "curl -fsSL https://pkgs.k8s.io/core:/stable:/${KUBERNETES_VERSION}/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg" \ + && guestfish --remote sh 'curl -fsSL "https://pkgs.k8s.io/core:/stable:/'"${KUBERNETES_VERSION}"'/deb/Release.key" | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg' \Repeat for the corresponding
echo 'deb ...'line to ensure the URL is constructed correctly.packages/apps/kubernetes/templates/cluster.yaml (1)
286-286: Bump MachineDeployment version to v1.32.3—ensure alignment
The MachineDeploymentversionwas updated tov1.32.3. Confirm that this patch version is intentional and consistent with other version references (e.g., in the Cluster resourcespec.version). Consider parameterizing this value invalues.yamlto avoid hardcoding in the template.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
packages/apps/kubernetes/Makefile(2 hunks)packages/apps/kubernetes/images/ubuntu-container-disk/Dockerfile(3 hunks)packages/apps/kubernetes/templates/cluster.yaml(1 hunks)packages/apps/kubernetes/templates/helmreleases/delete.yaml(1 hunks)
🔇 Additional comments (3)
packages/apps/kubernetes/images/ubuntu-container-disk/Dockerfile (1)
1-1: Upgrade base image to Ubuntu 24.04—verify compatibility
Moving from Ubuntu 22.04 to 24.04 may introduce changes to package availability, default kernel versions, or filesystem tools. Ensure that all required packages (e.g., guestfish, qemu) are still supported and that any upstream repositories for Ubuntu 24.04 remain available.packages/apps/kubernetes/Makefile (2)
1-1: Update Kubernetes version variable
The variableKUBERNETES_VERSION = v1.32correctly captures the new minor bump. Ensure downstream targets (e.g., Helm charts, documentation) reference this updated value.
15-17: Pass newKUBERNETES_VERSIONbuild-args and tags
The Docker build command now correctly uses--build-arg KUBERNETES_VERSION=${KUBERNETES_VERSION}and tags the image with$(KUBERNETES_VERSION). This aligns with the Dockerfile changes.
3ebe0c4 to
0880f96
Compare
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This PR also updates ubuntu-container-disk image to latest 24.04 LTS (Noble Numbat)
Signed-off-by: Andrei Kvapil kvapss@gmail.com
Summary by CodeRabbit