Skip to content

Commit 8a02a44

Browse files
committed
Improve Kubernetes Discovery messages
This change modifies how Kubernetes Distribution Discovery prints the message, using the utils log system. And adds two new messages for more clarity. Change-Id: Ib27404c0afe2fa897b2c64fe3dd32ad13ad1da86
1 parent b8329b9 commit 8a02a44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

controllers/softwarefactory_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,15 @@ func CheckOpenShift() bool {
493493
}
494494

495495
// Discovering Kubernetes Distribution
496-
fmt.Fprintf(os.Stdout, "OPENSHIFT_USER environment variable is not set, discovering Kubernetes Distribution\n")
496+
utils.LogI("OPENSHIFT_USER environment variable is not set, discovering Kubernetes Distribution\n")
497497

498498
var flavour = KubernetesDistribution()
499499
switch flavour {
500500
case Openshift:
501+
utils.LogI("Kubernetes Distribution found: Openshift\n")
501502
return true
502503
default:
504+
utils.LogI("Kubernetes Distribution found: Kubernetes\n")
503505
return false
504506
}
505507
}

0 commit comments

Comments
 (0)