Skip to content

Commit

Permalink
Issue crc-org#492: start: Mention 'developer' user
Browse files Browse the repository at this point in the history
When the cluster has been started successfully, we should give the
credentials for the 'developer' user in addition to the 'kubeadmin'
user.

This is related to crc-org#492
  • Loading branch information
cfergeau committed Aug 29, 2019
1 parent a746ebd commit fc11255
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/crc/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,13 @@ func Start(startConfig StartConfig) (StartResult, error) {
// If no error, return usage message
if result.Error == "" {
time.Sleep(time.Minute * 3)
logging.Infof("")
logging.Infof("To access the cluster, first set up your environment by following 'crc oc-env' instructions")
logging.Infof("Then you can access it with oc by running 'oc login -u kubeadmin -p %s %s'", result.ClusterConfig.KubeAdminPass, result.ClusterConfig.ClusterAPI)
logging.Infof("Access the OpenShift web-console here: %s", result.ClusterConfig.WebConsoleURL)
logging.Infof("Login to the console with user: kubeadmin, password: %s", result.ClusterConfig.KubeAdminPass)
logging.Infof("Then you can access it by running 'oc login -u developer -p developer %s'", result.ClusterConfig.ClusterAPI)
logging.Infof("To login as an admin, username is 'kubeadmin' and password is %s", result.ClusterConfig.KubeAdminPass)
logging.Infof("")
logging.Infof("Access the OpenShift web console here: %s", result.ClusterConfig.WebConsoleURL)
logging.Infof("Login to the console with user 'kubeadmin' and the password above")
}

// Approve the node certificate.
Expand Down

0 comments on commit fc11255

Please sign in to comment.