Skip to content

Commit 68f22f8

Browse files
committed
Print the "export KUBECONFIG=..." command on its own line for easier cut-and-paste
1 parent e20220f commit 68f22f8

File tree

10 files changed

+19
-10
lines changed

10 files changed

+19
-10
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ Example output:
4949
```sh
5050
INFO Waiting 10m0s for the openshift-console route to be created...
5151
INFO Install complete!
52-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/path/to/installer/auth/kubeconfig'
52+
INFO To access the cluster as the system:admin user when using 'oc', run
53+
export KUBECONFIG=/path/to/installer/auth/kubeconfig
5354
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.${CLUSTER_NAME}.${BASE_DOMAIN}:6443
5455
INFO Login to the console with user: kubeadmin, password: 5char-5char-5char-5char
5556
```

Diff for: cmd/openshift-install/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ func logComplete(directory, consoleURL string) error {
594594
return err
595595
}
596596
logrus.Info("Install complete!")
597-
logrus.Infof("To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=%s'", kubeconfig)
597+
logrus.Infof("To access the cluster as the system:admin user when using 'oc', run\n export KUBECONFIG=%s", kubeconfig)
598598
logrus.Infof("Access the OpenShift web-console here: %s", consoleURL)
599599
logrus.Infof("Login to the console with user: %q, and password: %q", "kubeadmin", pw)
600600
return nil

Diff for: docs/user/aws/install.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ INFO Destroying the bootstrap resources...
3434
INTO Waiting up to 30m0s for the cluster at https://api.test.example.com:6443 to initialize...
3535
INFO Waiting up to 10m0s for the openshift-console route to be created...
3636
INFO Install complete!
37-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/user/auth/kubeconfig'
37+
INFO To access the cluster as the system:admin user when using 'oc', run
38+
export KUBECONFIG=/home/user/auth/kubeconfig
3839
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.test.example.com
3940
INFO Login to the console with user: kubeadmin, password: 5char-5char-5char-5char
4041
```

Diff for: docs/user/azure/install.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ INFO Destroying the bootstrap resources...
3636
INTO Waiting up to 30m0s for the cluster at https://api.test.example.com:6443 to initialize...
3737
INFO Waiting up to 10m0s for the openshift-console route to be created...
3838
INFO Install complete!
39-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/user/auth/kubeconfig'
39+
INFO To access the cluster as the system:admin user when using 'oc', run
40+
export KUBECONFIG=/home/user/auth/kubeconfig
4041
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.test.example.com
4142
INFO Login to the console with user: kubeadmin, password: 5char-5char-5char-5char
4243
```

Diff for: docs/user/azure/install_upi.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ DEBUG Route found in openshift-console namespace: console
528528
DEBUG Route found in openshift-console namespace: downloads
529529
DEBUG OpenShift console route is created
530530
INFO Install complete!
531-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=${PWD}/auth/kubeconfig'
531+
INFO To access the cluster as the system:admin user when using 'oc', run
532+
export KUBECONFIG=${PWD}/auth/kubeconfig
532533
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.cluster.basedomain.com
533534
INFO Login to the console with user: kubeadmin, password: REDACTED
534535
```

Diff for: docs/user/azure/install_upi_azurestack.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ DEBUG Route found in openshift-console namespace: console
630630
DEBUG Route found in openshift-console namespace: downloads
631631
DEBUG OpenShift console route is created
632632
INFO Install complete!
633-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=${PWD}/auth/kubeconfig'
633+
INFO To access the cluster as the system:admin user when using 'oc', run
634+
export KUBECONFIG=${PWD}/auth/kubeconfig
634635
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.cluster.basedomain.com
635636
INFO Login to the console with user: kubeadmin, password: REDACTED
636637
```

Diff for: docs/user/gcp/install.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ INFO Destroying the bootstrap resources...
3838
INFO Waiting up to 30m0s for the cluster at https://api.mycluster.example.com:6443 to initialize...
3939
INFO Waiting up to 10m0s for the openshift-console route to be created...
4040
INFO Install complete!
41-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/user/auth/kubeconfig'
41+
INFO To access the cluster as the system:admin user when using 'oc', run
42+
export KUBECONFIG=/home/user/auth/kubeconfig
4243
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.mycluster.example.com
4344
INFO Login to the console with user: kubeadmin, password: 5char-5char-5char-5char
4445
```

Diff for: docs/user/openstack/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ Look for a message like this to verify that your install succeeded:
419419

420420
```txt
421421
INFO Install complete!
422-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/stack/ostest/auth/kubeconfig'
422+
INFO To access the cluster as the system:admin user when using 'oc', run
423+
export KUBECONFIG=/home/stack/ostest/auth/kubeconfig
423424
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.ostest.shiftstack.com
424425
INFO Login to the console with user: kubeadmin, password: xxx
425426
```

Diff for: docs/user/ovirt/install_ipi.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ INFO Destroying the bootstrap resources...
189189
INFO Waiting up to 30m0s for the cluster at https://api.test.example.org:6443 to initialize...
190190
INFO Waiting up to 10m0s for the openshift-console route to be created...
191191
INFO Install complete!
192-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/user/install_dir/auth/kubeconfig'
192+
INFO To access the cluster as the system:admin user when using 'oc', run
193+
export KUBECONFIG=/home/user/install_dir/auth/kubeconfig
193194
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.test.example.org
194195
INFO Login to the console with user: kubeadmin, password: xxxxxxxxx
195196
```

Diff for: docs/user/vsphere/install.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ INFO Destroying the bootstrap resources...
8383
INFO Waiting up to 30m0s for the cluster at https://api.mycluster.example.com:6443 to initialize...
8484
INFO Waiting up to 10m0s for the openshift-console route to be created...
8585
INFO Install complete!
86-
INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/home/user/auth/kubeconfig'
86+
INFO To access the cluster as the system:admin user when using 'oc', run
87+
export KUBECONFIG=/home/user/auth/kubeconfig
8788
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.mycluster.example.com
8889
INFO Login to the console with user: kubeadmin, password: 5char-5char-5char-5char
8990
```

0 commit comments

Comments
 (0)