Skip to content

Commit 1191a7b

Browse files
authored
Merge pull request #5 from dnwe/go-sdk-core-v5
chore(deps): bump go-sdk-core to v5
2 parents 4f6d4a5 + 5f6b0a4 commit 1191a7b

File tree

8 files changed

+359
-553
lines changed

8 files changed

+359
-553
lines changed

example/example.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"context"
45
"encoding/json"
56
"fmt"
67
"net/http"
@@ -9,7 +10,7 @@ import (
910
"strings"
1011

1112
"github.com/IBM/code-engine-go-sdk/ibmcloudcodeenginev1"
12-
"github.com/IBM/go-sdk-core/v4/core"
13+
"github.com/IBM/go-sdk-core/v5/core"
1314

1415
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1516
"k8s.io/client-go/kubernetes"
@@ -114,7 +115,7 @@ func main() {
114115
os.Exit(1)
115116
return
116117
}
117-
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(metav1.ListOptions{})
118+
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(context.TODO(), metav1.ListOptions{})
118119
if err != nil {
119120
fmt.Printf("Pods list error: %s\n", err.Error())
120121
os.Exit(1)

example/example_deprecated.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package main
22

33
import (
4+
"context"
45
"fmt"
56
"os"
67

78
"github.com/IBM/code-engine-go-sdk/ibmcloudcodeenginev1"
8-
"github.com/IBM/go-sdk-core/v4/core"
9+
"github.com/IBM/go-sdk-core/v5/core"
910

1011
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1112
"k8s.io/client-go/kubernetes"
@@ -91,7 +92,7 @@ func deprecated() {
9192
os.Exit(1)
9293
return
9394
}
94-
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(metav1.ListOptions{})
95+
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(context.TODO(), metav1.ListOptions{})
9596
if err != nil {
9697
fmt.Printf("Pods list error: %s\n", err.Error())
9798
os.Exit(1)

example/go.mod

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,22 @@ go 1.13
44

55
require (
66
github.com/IBM/code-engine-go-sdk v0.0.0-00010101000000-000000000000
7-
github.com/IBM/go-sdk-core/v4 v4.10.0
8-
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
9-
github.com/go-openapi/errors v0.19.7 // indirect
10-
github.com/gogo/protobuf v1.3.1 // indirect
11-
github.com/google/gofuzz v1.2.0 // indirect
12-
github.com/googleapis/gnostic v0.3.1 // indirect
13-
github.com/json-iterator/go v1.1.10 // indirect
14-
github.com/kr/pretty v0.2.0 // indirect
15-
github.com/mitchellh/mapstructure v1.3.3 // indirect
16-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
17-
github.com/modern-go/reflect2 v1.0.1 // indirect
18-
github.com/spf13/pflag v1.0.5 // indirect
19-
github.com/stoewer/go-strcase v1.2.0 // indirect
20-
go.mongodb.org/mongo-driver v1.4.2 // indirect
21-
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect
22-
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb // indirect
23-
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect
24-
golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634 // indirect
25-
gopkg.in/inf.v0 v0.9.1 // indirect
26-
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
27-
k8s.io/apimachinery v0.19.2
28-
k8s.io/client-go v11.0.0+incompatible
29-
sigs.k8s.io/yaml v1.2.0 // indirect
7+
github.com/IBM/go-sdk-core/v5 v5.9.5
8+
k8s.io/apimachinery v0.21.7
9+
k8s.io/client-go v0.21.7
3010
)
3111

32-
replace (
33-
github.com/IBM/code-engine-go-sdk => ./../../code-engine-go-sdk
34-
k8s.io/api => k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
35-
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
36-
k8s.io/client-go => k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
12+
require (
13+
github.com/google/gofuzz v1.2.0 // indirect
14+
github.com/imdario/mergo v0.3.12 // indirect
15+
github.com/json-iterator/go v1.1.12 // indirect
16+
golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect
17+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect
18+
golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect
19+
google.golang.org/appengine v1.6.7 // indirect
20+
google.golang.org/protobuf v1.28.0 // indirect
21+
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
22+
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
3723
)
24+
25+
replace github.com/IBM/code-engine-go-sdk => ./..

example/go.sum

Lines changed: 191 additions & 256 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,27 @@ module github.com/IBM/code-engine-go-sdk
33
go 1.13
44

55
require (
6-
github.com/IBM/go-sdk-core/v4 v4.10.0
7-
github.com/go-openapi/strfmt v0.19.10
8-
github.com/imdario/mergo v0.3.11 // indirect
9-
github.com/onsi/ginkgo v1.14.2
10-
github.com/onsi/gomega v1.10.3
11-
github.com/stretchr/testify v1.6.1
12-
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
13-
k8s.io/api v0.19.2 // indirect
14-
k8s.io/client-go v11.0.0+incompatible // indirect
15-
k8s.io/klog v1.0.0 // indirect
16-
k8s.io/utils v0.0.0-20201005171033-6301aaf42dc7 // indirect
6+
github.com/IBM/go-sdk-core/v5 v5.10.0
7+
github.com/go-openapi/strfmt v0.21.2
8+
github.com/onsi/ginkgo v1.16.5
9+
github.com/onsi/gomega v1.18.1
10+
github.com/stretchr/testify v1.7.1
11+
)
12+
13+
require (
14+
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
15+
github.com/fsnotify/fsnotify v1.5.4 // indirect
16+
github.com/go-openapi/errors v0.20.2 // indirect
17+
github.com/go-stack/stack v1.8.1 // indirect
18+
github.com/google/go-cmp v0.5.8 // indirect
19+
github.com/google/uuid v1.3.0 // indirect
20+
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
21+
github.com/mitchellh/mapstructure v1.5.0 // indirect
22+
github.com/onsi/ginkgo/v2 v2.1.3 // indirect
23+
go.mongodb.org/mongo-driver v1.9.0 // indirect
24+
golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect
25+
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
26+
golang.org/x/text v0.3.7 // indirect
27+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
28+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
1729
)

0 commit comments

Comments
 (0)