Skip to content

Commit

Permalink
Merge pull request #7 from dttung2905/fix-breaking-changes-client-go
Browse files Browse the repository at this point in the history
Bump k8s.io/client-go to v0.26.0
  • Loading branch information
daniel-yavorovich committed Jan 9, 2023
2 parents 44c816c + 2945718 commit 5a82fcc
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 65 deletions.
4 changes: 2 additions & 2 deletions external/http_transport/fast_http_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func (s *transport) SetTLS(conf *tls.Config) {
func NewTransport(opts *configs.HTTPTransport, tlsConf ...tr.TLSConfig) *transport {
var tlsC *tls.Config
if len(tlsConf) > 0 {
if tlsConf[0].GetCert != nil {
if certs, err := tlsConf[0].GetCert(); err == nil && certs != nil {
if tlsConf[0].GetCertHolder.GetCert != nil {
if certs, err := tlsConf[0].GetCertHolder.GetCert(); err == nil && certs != nil {
tlsC = &tls.Config{
Certificates: []tls.Certificate{*certs},
}
Expand Down
49 changes: 43 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dysnix/predictkube-libs

go 1.16
go 1.17

require (
github.com/brianvoe/gofakeit/v6 v6.9.0
Expand All @@ -19,18 +19,55 @@ require (
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.11.0
github.com/robfig/cron/v3 v3.0.1
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.8.0
github.com/ulikunitz/unixtime v0.1.2
github.com/valyala/fasthttp v1.38.0
github.com/wagslane/go-password-validator v0.3.0
github.com/xhit/go-str2duration/v2 v2.0.0
go.uber.org/zap v1.19.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
google.golang.org/grpc v1.42.0
google.golang.org/protobuf v1.27.1
google.golang.org/protobuf v1.28.1
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
gopkg.in/yaml.v3 v3.0.1
gorm.io/gorm v1.22.4
gotest.tools/v3 v3.0.3
k8s.io/client-go v0.22.2
k8s.io/client-go v0.26.0
)

require (
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.3 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.26.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/savsgio/gotils v0.0.0-20220530130905-52f3993e8d6d // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 // indirect
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
golang.org/x/tools v0.2.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154 // indirect
k8s.io/apimachinery v0.26.0 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
k8s.io/utils v0.0.0-20221107191617-1a15be271d1d // indirect
)
Loading

0 comments on commit 5a82fcc

Please sign in to comment.