Skip to content

Commit

Permalink
Bump k8s library
Browse files Browse the repository at this point in the history
  • Loading branch information
skisel committed Mar 15, 2021
1 parent ef08034 commit 26943ff
Show file tree
Hide file tree
Showing 6 changed files with 622 additions and 16 deletions.
1 change: 1 addition & 0 deletions cmd/kubefwd/kubefwd.go
Expand Up @@ -85,6 +85,7 @@ func main() {

log.SetOutput(&LogOutputSplitter{})

log.Print(`LOLOLLOLOLLLOLOOLLOLOLLOL`)
log.Print(` _ _ __ _`)
log.Print(`| | ___ _| |__ ___ / _|_ ____| |`)
log.Print(`| |/ / | | | '_ \ / _ \ |_\ \ /\ / / _ |`)
Expand Down
7 changes: 4 additions & 3 deletions cmd/kubefwd/services/services.go
Expand Up @@ -23,6 +23,7 @@ import (
"sync"
"syscall"
"time"
"context"

"github.com/bep/debounce"
"github.com/txn2/kubefwd/pkg/fwdcfg"
Expand Down Expand Up @@ -110,7 +111,7 @@ func checkConnection(clientSet *kubernetes.Clientset, namespaces []string) error
ResourceAttributes: &perm,
},
}
accessReview, err = clientSet.AuthorizationV1().SelfSubjectAccessReviews().Create(accessReview)
accessReview, err = clientSet.AuthorizationV1().SelfSubjectAccessReviews().Create(context.TODO(), accessReview, metav1.CreateOptions{})
if err != nil {
return err
}
Expand Down Expand Up @@ -362,12 +363,12 @@ func (opts *NamespaceOpts) watchServiceEvents(stopListenCh <-chan struct{}) {
&cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
optionsModifier(&options)
return opts.ClientSet.CoreV1().Services(opts.Namespace).List(options)
return opts.ClientSet.CoreV1().Services(opts.Namespace).List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
options.Watch = true
optionsModifier(&options)
return opts.ClientSet.CoreV1().Services(opts.Namespace).Watch(options)
return opts.ClientSet.CoreV1().Services(opts.Namespace).Watch(context.TODO(), options)
},
},
&v1.Service{},
Expand Down
25 changes: 16 additions & 9 deletions go.mod
Expand Up @@ -4,16 +4,23 @@ go 1.13

require (
github.com/bep/debounce v1.2.0
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0 // indirect
github.com/elazarl/goproxy v0.0.0-20181111060418-2ce16c963a8a // indirect
github.com/pkg/errors v0.8.1
github.com/gophercloud/gophercloud v0.1.0 // indirect
github.com/pkg/errors v0.9.1
github.com/securego/gosec v0.0.0-20200401082031-e946c8c39989 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/spf13/cobra v0.0.5
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v1.1.1
github.com/txn2/txeh v1.2.1
golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e
k8s.io/api v0.0.0-20191108065827-59e77acf588f
k8s.io/apimachinery v0.0.0-20191108065633-c18f71bf2947
k8s.io/cli-runtime v0.0.0-20191108072024-9fe36560f3af
k8s.io/client-go v0.0.0-20191108070106-f8f007fd456c
k8s.io/kubectl v0.0.0-20191108073526-feacf2b3d48e
github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1 // indirect
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect
k8s.io/api v0.20.4
k8s.io/apimachinery v0.20.4
k8s.io/cli-runtime v0.20.4
k8s.io/client-go v0.20.4
k8s.io/klog v1.0.0 // indirect
k8s.io/kubectl v0.20.4
sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e // indirect
vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc // indirect
)

0 comments on commit 26943ff

Please sign in to comment.