Skip to content

Commit

Permalink
Merge pull request #5 from dnwe/go-sdk-core-v5
Browse files Browse the repository at this point in the history
chore(deps): bump go-sdk-core to v5
  • Loading branch information
reggeenr authored May 24, 2022
2 parents 4f6d4a5 + 5f6b0a4 commit 1191a7b
Show file tree
Hide file tree
Showing 8 changed files with 359 additions and 553 deletions.
5 changes: 3 additions & 2 deletions example/example.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"encoding/json"
"fmt"
"net/http"
Expand All @@ -9,7 +10,7 @@ import (
"strings"

"github.com/IBM/code-engine-go-sdk/ibmcloudcodeenginev1"
"github.com/IBM/go-sdk-core/v4/core"
"github.com/IBM/go-sdk-core/v5/core"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
Expand Down Expand Up @@ -114,7 +115,7 @@ func main() {
os.Exit(1)
return
}
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(metav1.ListOptions{})
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(context.TODO(), metav1.ListOptions{})
if err != nil {
fmt.Printf("Pods list error: %s\n", err.Error())
os.Exit(1)
Expand Down
5 changes: 3 additions & 2 deletions example/example_deprecated.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"context"
"fmt"
"os"

"github.com/IBM/code-engine-go-sdk/ibmcloudcodeenginev1"
"github.com/IBM/go-sdk-core/v4/core"
"github.com/IBM/go-sdk-core/v5/core"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
Expand Down Expand Up @@ -91,7 +92,7 @@ func deprecated() {
os.Exit(1)
return
}
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(metav1.ListOptions{})
configMapList, err := kubeClient.CoreV1().ConfigMaps(namespace).List(context.TODO(), metav1.ListOptions{})
if err != nil {
fmt.Printf("Pods list error: %s\n", err.Error())
os.Exit(1)
Expand Down
44 changes: 16 additions & 28 deletions example/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,22 @@ go 1.13

require (
github.com/IBM/code-engine-go-sdk v0.0.0-00010101000000-000000000000
github.com/IBM/go-sdk-core/v4 v4.10.0
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
github.com/go-openapi/errors v0.19.7 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/googleapis/gnostic v0.3.1 // indirect
github.com/json-iterator/go v1.1.10 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/mitchellh/mapstructure v1.3.3 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stoewer/go-strcase v1.2.0 // indirect
go.mongodb.org/mongo-driver v1.4.2 // indirect
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0 // indirect
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb // indirect
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect
golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
k8s.io/apimachinery v0.19.2
k8s.io/client-go v11.0.0+incompatible
sigs.k8s.io/yaml v1.2.0 // indirect
github.com/IBM/go-sdk-core/v5 v5.9.5
k8s.io/apimachinery v0.21.7
k8s.io/client-go v0.21.7
)

replace (
github.com/IBM/code-engine-go-sdk => ./../../code-engine-go-sdk
k8s.io/api => k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
k8s.io/client-go => k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
require (
github.com/google/gofuzz v1.2.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/json-iterator/go v1.1.12 // indirect
golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect
golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
)

replace github.com/IBM/code-engine-go-sdk => ./..
447 changes: 191 additions & 256 deletions example/go.sum

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,27 @@ module github.com/IBM/code-engine-go-sdk
go 1.13

require (
github.com/IBM/go-sdk-core/v4 v4.10.0
github.com/go-openapi/strfmt v0.19.10
github.com/imdario/mergo v0.3.11 // indirect
github.com/onsi/ginkgo v1.14.2
github.com/onsi/gomega v1.10.3
github.com/stretchr/testify v1.6.1
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
k8s.io/api v0.19.2 // indirect
k8s.io/client-go v11.0.0+incompatible // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/utils v0.0.0-20201005171033-6301aaf42dc7 // indirect
github.com/IBM/go-sdk-core/v5 v5.10.0
github.com/go-openapi/strfmt v0.21.2
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.18.1
github.com/stretchr/testify v1.7.1
)

require (
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-openapi/errors v0.20.2 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/onsi/ginkgo/v2 v2.1.3 // indirect
go.mongodb.org/mongo-driver v1.9.0 // indirect
golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect
golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit 1191a7b

Please sign in to comment.