Skip to content

Commit

Permalink
Merge pull request #485 from yue9944882/go-mod
Browse files Browse the repository at this point in the history
Initialize a dep compatible go mod configuration
  • Loading branch information
k8s-ci-robot authored Mar 10, 2020
2 parents 6e294ae + c8a5c2b commit 18f2ce0
Show file tree
Hide file tree
Showing 12 changed files with 2,363 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/apiregister-gen/generators/admission_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (d *admissionGenerator) Imports(c *generator.Context) []string {
"sigs.k8s.io/apiserver-builder-alpha/pkg/cmd/server",
"k8s.io/client-go/rest",
`genericserver "k8s.io/apiserver/pkg/server"`,
"k8s.io/apiserver/pkg/admission",
}
for _, kind := range d.admissionKinds {
imports = append(imports, fmt.Sprintf(
Expand Down
1 change: 1 addition & 0 deletions cmd/apiserver-boot/boot/create/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ var log = logf.Log.WithName("{{ lower .Resource.Kind }}-controller")
appsv1 "k8s.io/api/apps/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/handler"
Expand Down
1 change: 1 addition & 0 deletions cmd/apiserver-boot/boot/create/controller_test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
"sigs.k8s.io/apiserver-builder-alpha/pkg/test/suite"
"{{ .Repo }}/pkg/apis"
)
Expand Down
1 change: 1 addition & 0 deletions cmd/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGm
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384 h1:TFlARGu6Czu1z7q93HTxcP1P+/ZFC/IKythI5RzrnRg=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59 h1:QjA/9ArTfVTLfEhClDCG7SGrZkZixxWpwNCDiwJfh88=
golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485 h1:OB/uP/Puiu5vS5QMRPrXCDWUPb+kt8f1KW8oQzFejQw=
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0=
Expand Down
277 changes: 277 additions & 0 deletions example/basic/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
module sigs.k8s.io/apiserver-builder-alpha/example/basic

go 1.13

require (
github.com/go-openapi/loads v0.0.0-20160704185440-18441dfa706d
github.com/go-openapi/runtime v0.0.0-20160704190703-11e322eeecc1
github.com/go-openapi/spec v0.19.2
github.com/go-openapi/validate v0.19.2
github.com/onsi/ginkgo v1.8.0
github.com/onsi/gomega v1.5.0
github.com/rancher/kine v0.3.2
github.com/spf13/cobra v0.0.5
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v0.0.0-20160820190039-7fb2782df3d8
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
k8s.io/api v0.17.0
k8s.io/apiextensions-apiserver v0.17.0
k8s.io/apimachinery v0.17.0
k8s.io/apiserver v0.0.0-20190918160949-bfa5e2e684ad
k8s.io/client-go v0.17.0
k8s.io/klog v0.4.0
k8s.io/kube-aggregator v0.0.0-20190918161219-8c8f079fddc3
k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf
k8s.io/utils v0.0.0-20190809000727-6c36bc71fc4a
sigs.k8s.io/apiserver-builder-alpha v0.0.0-20200303021738-6e294aee8ffe
sigs.k8s.io/controller-runtime v0.3.1-0.20191029211253-40070e2a1958
sigs.k8s.io/testing_frameworks v0.1.1
)

replace cloud.google.com/go => cloud.google.com/go v0.1.1-0.20160913182117-3b1ae45394a2

replace github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.0.0+incompatible

replace github.com/NYTimes/gziphandler => github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46

replace github.com/PuerkitoBio/purell => github.com/PuerkitoBio/purell v1.0.0

replace github.com/PuerkitoBio/urlesc => github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2

replace github.com/Rican7/retry => github.com/Rican7/retry v0.1.0

replace github.com/asaskevich/govalidator => github.com/asaskevich/govalidator v0.0.0-20171111151018-521b25f4b05f

replace github.com/beorn7/perks => github.com/beorn7/perks v0.0.0-20160229213445-3ac7bf7a47d1

replace github.com/canonical/go-dqlite => github.com/canonical/go-dqlite v1.2.0

replace github.com/coreos/bbolt => github.com/coreos/bbolt v1.3.0

replace github.com/coreos/etcd => github.com/coreos/etcd v3.3.15+incompatible

replace github.com/coreos/go-semver => github.com/coreos/go-semver v0.2.0

replace github.com/coreos/go-systemd => github.com/coreos/go-systemd v0.0.0-20161114122254-48702e0da86b

replace github.com/coreos/pkg => github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea

replace github.com/davecgh/go-spew => github.com/davecgh/go-spew v1.1.1-0.20170626231645-782f4967f2dc

replace github.com/dgrijalva/jwt-go => github.com/dgrijalva/jwt-go v3.2.0+incompatible

replace github.com/docker/spdystream => github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c

replace github.com/emicklei/go-restful => github.com/emicklei/go-restful v1.1.4-0.20170410110728-ff4f55a20633

replace github.com/evanphx/json-patch => github.com/evanphx/json-patch v4.5.0+incompatible

replace github.com/fsnotify/fsnotify => github.com/fsnotify/fsnotify v1.4.7

replace github.com/go-logr/logr => github.com/go-logr/logr v0.1.0

replace github.com/go-logr/zapr => github.com/go-logr/zapr v0.1.1

replace github.com/go-openapi/analysis => github.com/go-openapi/analysis v0.0.0-20160815203709-b44dc874b601

replace github.com/go-openapi/errors => github.com/go-openapi/errors v0.0.0-20171226161601-7bcb96a367ba

replace github.com/go-openapi/jsonpointer => github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1

replace github.com/go-openapi/jsonreference => github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9

replace github.com/go-openapi/loads => github.com/go-openapi/loads v0.0.0-20160704185440-18441dfa706d

replace github.com/go-openapi/runtime => github.com/go-openapi/runtime v0.0.0-20160704190703-11e322eeecc1

replace github.com/go-openapi/spec => github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501

replace github.com/go-openapi/strfmt => github.com/go-openapi/strfmt v0.0.0-20160812050534-d65c7fdb29ec

replace github.com/go-openapi/swag => github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87

replace github.com/go-openapi/validate => github.com/go-openapi/validate v0.0.0-20160704191746-deaf2c9013bc

replace github.com/go-sql-driver/mysql => github.com/go-sql-driver/mysql v1.4.1

replace github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.1

replace github.com/golang/groupcache => github.com/golang/groupcache v0.0.0-20181024230925-c65c006176ff

replace github.com/golang/protobuf => github.com/golang/protobuf v1.1.0

replace github.com/google/btree => github.com/google/btree v0.0.0-20160524151835-7d79101e329e

replace github.com/google/go-cmp => github.com/google/go-cmp v0.3.1

replace github.com/google/gofuzz => github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367

replace github.com/google/uuid => github.com/google/uuid v1.1.1

replace github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d

replace github.com/gophercloud/gophercloud => github.com/gophercloud/gophercloud v0.0.0-20170831144856-2bf16b94fdd9

replace github.com/gorilla/websocket => github.com/gorilla/websocket v1.4.1

replace github.com/grpc-ecosystem/go-grpc-middleware => github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190723091251-e0797f438f94

replace github.com/grpc-ecosystem/go-grpc-prometheus => github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0

replace github.com/grpc-ecosystem/grpc-gateway => github.com/grpc-ecosystem/grpc-gateway v1.4.1

replace github.com/hashicorp/golang-lru => github.com/hashicorp/golang-lru v0.0.0-20160207214719-a0d98a5f2880

replace github.com/hashicorp/hcl => github.com/hashicorp/hcl v0.0.0-20171017181929-23c074d0eceb

replace github.com/hpcloud/tail => github.com/hpcloud/tail v1.0.0

replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.5

replace github.com/inconshreveable/mousetrap => github.com/inconshreveable/mousetrap v1.0.0

replace github.com/jonboulle/clockwork => github.com/jonboulle/clockwork v0.1.0

replace github.com/json-iterator/go => github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3

replace github.com/konsorten/go-windows-terminal-sequences => github.com/konsorten/go-windows-terminal-sequences v1.0.2

replace github.com/lib/pq => github.com/lib/pq v1.2.0

replace github.com/magiconair/properties => github.com/magiconair/properties v1.7.4

replace github.com/mailru/easyjson => github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a

replace github.com/markbates/inflect => github.com/markbates/inflect v0.0.0-20171215194931-a12c3aec81a6

replace github.com/mattn/go-sqlite3 => github.com/mattn/go-sqlite3 v1.11.0

replace github.com/matttproud/golang_protobuf_extensions => github.com/matttproud/golang_protobuf_extensions v0.0.0-20150406173934-fc2b8d3a73c4

replace github.com/mitchellh/mapstructure => github.com/mitchellh/mapstructure v0.0.0-20180111000720-b4575eea38cc

replace github.com/modern-go/concurrent => github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd

replace github.com/modern-go/reflect2 => github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742

replace github.com/munnerz/goautoneg => github.com/munnerz/goautoneg v0.0.0-20190414153302-2ae31c8b6b30

replace github.com/mxk/go-flowrate => github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f

replace github.com/onsi/ginkgo => github.com/onsi/ginkgo v1.8.0

replace github.com/onsi/gomega => github.com/onsi/gomega v1.5.0

replace github.com/pborman/uuid => github.com/pborman/uuid v0.0.0-20150603214016-ca53cad383ca

replace github.com/pelletier/go-toml => github.com/pelletier/go-toml v1.1.0

replace github.com/petar/GoLLRB => github.com/petar/GoLLRB v0.0.0-20130427215148-53be0d36a84c

replace github.com/pkg/errors => github.com/pkg/errors v0.7.1-0.20160808055540-a22138067af1

replace github.com/prometheus/client_golang => github.com/prometheus/client_golang v0.9.2

replace github.com/prometheus/client_model => github.com/prometheus/client_model v0.0.0-20150212101744-fa8ad6fec335

replace github.com/prometheus/common => github.com/prometheus/common v0.0.0-20170427095455-13ba4ddd0caa

replace github.com/prometheus/procfs => github.com/prometheus/procfs v0.0.0-20170519190837-65c1f6f8f0fc

replace github.com/rancher/kine => github.com/rancher/kine v0.3.2

replace github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.4.2

replace github.com/soheilhy/cmux => github.com/soheilhy/cmux v0.1.4

replace github.com/spf13/afero => github.com/spf13/afero v1.0.2

replace github.com/spf13/cast => github.com/spf13/cast v1.1.0

replace github.com/spf13/cobra => github.com/spf13/cobra v0.0.0-20160722081547-f62e98d28ab7

replace github.com/spf13/jwalterweatherman => github.com/spf13/jwalterweatherman v0.0.0-20180109140146-7c0cea34c8ec

replace github.com/spf13/pflag => github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff

replace github.com/spf13/viper => github.com/spf13/viper v0.0.0-20160820190039-7fb2782df3d8

replace github.com/tmc/grpc-websocket-proxy => github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5

replace github.com/xiang90/probing => github.com/xiang90/probing v0.0.0-20160813154853-07dd2e8dfe18

replace go.uber.org/atomic => go.uber.org/atomic v1.3.2

replace go.uber.org/multierr => go.uber.org/multierr v1.1.0

replace go.uber.org/zap => go.uber.org/zap v1.9.1

replace golang.org/x/crypto => golang.org/x/crypto v0.0.0-20170825220121-81e90905daef

replace golang.org/x/net => golang.org/x/net v0.0.0-20170809000501-1c05540f6879

replace golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20170412232759-a6bd8cefa181

replace golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a

replace golang.org/x/text => golang.org/x/text v0.0.0-20170810154203-b19bf474d317

replace golang.org/x/time => golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2

replace golang.org/x/tools => golang.org/x/tools v0.0.0-20181101071927-45ff765b4815

replace golang.org/x/xerrors => golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898

replace gomodules.xyz/jsonpatch => gomodules.xyz/jsonpatch v2.0.0+incompatible

replace google.golang.org/appengine => google.golang.org/appengine v1.0.1-0.20171011215012-a2e0dc829727

replace google.golang.org/genproto => google.golang.org/genproto v0.0.0-20170731182057-09f6ed296fc6

replace google.golang.org/grpc => google.golang.org/grpc v1.23.0

replace gopkg.in/inf.v0 => gopkg.in/inf.v0 v0.9.0

replace gopkg.in/natefinch/lumberjack.v2 => gopkg.in/natefinch/lumberjack.v2 v2.0.0-20150622162204-20b71e5b60d7

replace gopkg.in/tomb.v1 => gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7

replace gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.2.2

replace k8s.io/api => k8s.io/api v0.0.0-20190918155943-95b840bb6a1f

replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.0.0-20190918161926-8f644eb6e783

replace k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20190913080033-27d36303b655

replace k8s.io/apiserver => k8s.io/apiserver v0.0.0-20190918160949-bfa5e2e684ad

replace k8s.io/client-go => k8s.io/client-go v0.0.0-20190918160344-1fbdaa4c8d90

replace k8s.io/code-generator => k8s.io/code-generator v0.0.0-20190912054826-cd179ad6a269

replace k8s.io/component-base => k8s.io/component-base v0.0.0-20190918160511-547f6c5d7090

replace k8s.io/gengo => k8s.io/gengo v0.0.0-20190907103519-ebc107f98eab

replace k8s.io/klog => k8s.io/klog v0.2.0

replace k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.0.0-20190918161219-8c8f079fddc3

replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20190816220812-743ec37842bf

replace k8s.io/utils => k8s.io/utils v0.0.0-20190809000727-6c36bc71fc4a

replace sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.3.1-0.20191029211253-40070e2a1958

replace sigs.k8s.io/controller-tools => sigs.k8s.io/controller-tools v0.1.11-0.20190405182121-56d42b19e55a

replace sigs.k8s.io/kubebuilder => sigs.k8s.io/kubebuilder v1.0.8

replace sigs.k8s.io/structured-merge-diff => sigs.k8s.io/structured-merge-diff v1.0.0

replace sigs.k8s.io/testing_frameworks => sigs.k8s.io/testing_frameworks v0.1.1

replace sigs.k8s.io/yaml => sigs.k8s.io/yaml v1.1.0

replace sigs.k8s.io/apiserver-builder-alpha => ../../../apiserver-builder-alpha
Loading

0 comments on commit 18f2ce0

Please sign in to comment.