Skip to content

Commit

Permalink
Merge pull request #289 from Tof1973/allow-to-source-multi-output
Browse files Browse the repository at this point in the history
Allow to source --multi output
  • Loading branch information
openshift-merge-bot[bot] committed Dec 12, 2023
2 parents 36e3db6 + 25b2d1d commit 6411c2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ Logging into multiple clusters via different terminal instances.
$ export KUBECONFIG= <cluster-id-1-kube-config-path>
```

you can also directly run

```
$ source <(ocm backplane login <cluster-id-1> --multi)
```

- How to log into the second cluster

```
Expand Down
2 changes: 1 addition & 1 deletion pkg/login/kubeConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func SaveKubeConfig(clusterID string, config api.Config, isMulti bool, kubePath

if kubePath == "" {
// Inform how to setup kube config
fmt.Printf("Execute the following command to log into the cluster %s \n", clusterID)
fmt.Printf("# Execute the following command to log into the cluster %s \n", clusterID)
fmt.Println("export " + info.BackplaneKubeconfigEnvName + "=" + path)
}

Expand Down

0 comments on commit 6411c2f

Please sign in to comment.