Skip to content

Commit 309b4ed

Browse files
committed
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.
1 parent 9406754 commit 309b4ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/controller/hypervisor_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ func (r *HypervisorReconciler) Reconcile(ctx context.Context, req ctrl.Request)
122122
hypervisor.Status.OperatingSystem.PrettyVersion = strings.Split(line, "=")[1]
123123
case "GARDENLINUX_VERSION":
124124
hypervisor.Status.OperatingSystem.Version = strings.Split(line, "=")[1]
125+
case "GARDENLINUX_COMMIT_ID_LONG":
126+
hypervisor.Status.OperatingSystem.CommitSHA = strings.Split(line, "=")[1]
125127
}
126128
}
127129
hypervisor.Status.OperatingSystem.KernelVersion = r.osDescriptor.KernelVersion

0 commit comments

Comments
 (0)