Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Issue #66 Show the openshift version in detailed status view
Browse files Browse the repository at this point in the history
  • Loading branch information
anjannath authored and guillaumerose committed Mar 16, 2021
1 parent 27b189b commit 541a6f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CodeReady Containers/DetailedStatusViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ class DetailedStatusViewController: NSViewController {
}

func updateViewWithClusterStatus(_ status: ClusterStatus) {
var ocpVersion: String?
DispatchQueue.global(qos: .background).sync {
let versionInfo = FetchVersionInfoFromDaemon()
ocpVersion = versionInfo.1
}

if status.Success {
self.vmStatus.stringValue = status.CrcStatus!
self.ocpStatus.stringValue = status.OpenshiftStatus!
self.ocpStatus.stringValue = "\(status.OpenshiftStatus!) (v\(ocpVersion!))"
} else {
self.vmStatus.stringValue = status.Error!
self.ocpStatus.stringValue = "Unknown"
Expand Down

0 comments on commit 541a6f5

Please sign in to comment.