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 8fe0fdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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
2 changes: 2 additions & 0 deletions api/functions/api_service.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package functions

import (
"fmt"
gohttp "net/http"

bluemix "github.com/IBM-Cloud/bluemix-go"
Expand All @@ -26,6 +27,7 @@ type fnService struct {

//New ...
func New(sess *session.Session) (FunctionServiceAPI, error) {
fmt.Println("$$$$$$$$$$$$$$$$$$$$$$$$")
config := sess.Config.Copy()
err := config.ValidateConfigForService(bluemix.FunctionsService)
if err != nil {
Expand Down

0 comments on commit 8fe0fdf

Please sign in to comment.