Skip to content

Commit 8fe0fdf

Browse files
Enable oc token generation for ROKS satellite
1 parent 9406311 commit 8fe0fdf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

api/container/containerv2/clusters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ func (r *clusters) GetClusterConfigDetail(name, dir string, admin bool, target C
346346
clusterkey.FilePath, _ = filepath.Abs(kubeyml)
347347
return clusterkey, err
348348
}
349-
if clusterInfo.Type == "openshift" && clusterInfo.Provider != "satellite" {
349+
if clusterInfo.Type == "openshift" && clusterInfo.Provider == "satellite" {
350350
trace.Logger.Println("Debug: type is openshift trying login to get token")
351351
var yamlConfig []byte
352352
if yamlConfig, err = ioutil.ReadFile(kubeyml); err != nil {

api/functions/api_service.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package functions
22

33
import (
4+
"fmt"
45
gohttp "net/http"
56

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

2728
//New ...
2829
func New(sess *session.Session) (FunctionServiceAPI, error) {
30+
fmt.Println("$$$$$$$$$$$$$$$$$$$$$$$$")
2931
config := sess.Config.Copy()
3032
err := config.ValidateConfigForService(bluemix.FunctionsService)
3133
if err != nil {

0 commit comments

Comments
 (0)