Skip to content

Commit

Permalink
Enable oc token generation for ROKS satellite
Browse files Browse the repository at this point in the history
  • Loading branch information
anilkumarnagaraj committed Sep 20, 2021
1 parent 9406311 commit 6e75a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/container/containerv2/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (r *clusters) GetClusterConfigDetail(name, dir string, admin bool, target C
clusterkey.FilePath, _ = filepath.Abs(kubeyml)
return clusterkey, err
}
if clusterInfo.Type == "openshift" && clusterInfo.Provider != "satellite" {
if clusterInfo.Type == "openshift" && clusterInfo.Provider == "satellite" {
trace.Logger.Println("Debug: type is openshift trying login to get token")
var yamlConfig []byte
if yamlConfig, err = ioutil.ReadFile(kubeyml); err != nil {
Expand Down Expand Up @@ -500,7 +500,7 @@ func (r *clusters) StoreConfigDetail(name, dir string, admin, createCalicoConfig
return calicoConfig, clusterkey, nil
}

if clusterInfo.Type == "openshift" && clusterInfo.Provider != "satellite" {
if clusterInfo.Type == "openshift" && clusterInfo.Provider == "satellite" {
trace.Logger.Println("Cluster Type is openshift trying login to get token")
var yamlConfig []byte
if yamlConfig, err = ioutil.ReadFile(kubeconfigFileName); err != nil {
Expand Down

0 comments on commit 6e75a1f

Please sign in to comment.