Skip to content

Commit

Permalink
fix(deps): update module github.com/slok/kubewebhook to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
estahn committed Aug 13, 2021
1 parent 9c7d12a commit 8bd73d4
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 200 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Expand Up @@ -39,7 +39,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
whhttp "github.com/slok/kubewebhook/pkg/http"
kwhhttp "github.com/slok/kubewebhook/v2/pkg/http"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -84,7 +84,7 @@ A mutating webhook for Kubernetes, pointing the images to a new location.`,
}

// Get the handler for our webhook.
whHandler, err := whhttp.HandlerFor(wh)
whHandler, err := kwhhttp.HandlerFor(kwhhttp.HandlerConfig{Webhook: wh})
if err != nil {
log.Err(err).Msg("error creating webhook handler")
os.Exit(1)
Expand Down
41 changes: 29 additions & 12 deletions go.mod
@@ -1,25 +1,42 @@
module github.com/estahn/k8s-image-swapper

go 1.12
go 1.16

require (
github.com/alitto/pond v1.4.0
github.com/aws/aws-sdk-go v1.38.47
github.com/containers/image/v5 v5.11.0
github.com/alitto/pond v1.5.0
github.com/aws/aws-sdk-go v1.38.65
github.com/containerd/containerd v1.5.2 // indirect
github.com/containers/image/v5 v5.13.2
github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a // indirect
github.com/containers/storage v1.32.4 // indirect
github.com/dgraph-io/ristretto v0.1.0
github.com/go-co-op/gocron v0.4.0
github.com/godbus/dbus v0.0.0-20190422162347-ade71ed3457e // indirect
github.com/docker/docker v20.10.7+incompatible // indirect
github.com/go-co-op/gocron v1.6.2
github.com/golang/glog v0.0.0-20210429001901-424d2337a529 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/jmespath/go-jmespath v0.4.0
github.com/mitchellh/go-homedir v1.1.0
github.com/pierrec/lz4 v2.0.5+incompatible // indirect
github.com/prometheus/client_golang v1.9.0
github.com/ostreedev/ostree-go v0.0.0-20210511152353-2ca91aaf921c // indirect
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/common v0.29.0 // indirect
github.com/rs/zerolog v1.23.0
github.com/slok/kubewebhook v0.11.0
github.com/spf13/cobra v1.1.1
github.com/spf13/viper v1.7.1
github.com/slok/kubewebhook/v2 v2.1.0 // indirect
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.8.0
github.com/stretchr/objx v0.3.0 // indirect
github.com/stretchr/testify v1.7.0
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect
google.golang.org/genproto v0.0.0-20210617175327-b9e0b3197ced // indirect
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.20.1
k8s.io/apimachinery v0.21.1
k8s.io/api v0.21.2
k8s.io/apimachinery v0.21.2
k8s.io/client-go v0.21.2 // indirect
k8s.io/klog/v2 v2.9.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.1.1 // indirect
)

0 comments on commit 8bd73d4

Please sign in to comment.