From 58a51024e22c92fe9a1220bb42b7833e5ba75882 Mon Sep 17 00:00:00 2001 From: Tobias Jungel <1773291+toanju@users.noreply.github.com> Date: Tue, 16 Dec 2025 13:47:20 +0100 Subject: [PATCH] Add Garden Linux Commit ID to the status This will update the status of the Hypervisor resource to include the current Garden Linux commit SHA, allowing users to easily identify the version of Garden Linux running on their hypervisor. --- internal/controller/hypervisor_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/controller/hypervisor_controller.go b/internal/controller/hypervisor_controller.go index 263702e..dd904b5 100644 --- a/internal/controller/hypervisor_controller.go +++ b/internal/controller/hypervisor_controller.go @@ -122,6 +122,8 @@ func (r *HypervisorReconciler) Reconcile(ctx context.Context, req ctrl.Request) hypervisor.Status.OperatingSystem.PrettyVersion = strings.Split(line, "=")[1] case "GARDENLINUX_VERSION": hypervisor.Status.OperatingSystem.Version = strings.Split(line, "=")[1] + case "GARDENLINUX_COMMIT_ID_LONG": + hypervisor.Status.OperatingSystem.CommitID = strings.Split(line, "=")[1] } } hypervisor.Status.OperatingSystem.KernelVersion = r.osDescriptor.KernelVersion