Skip to content

Commit a65daac

Browse files
authored
Merge pull request #1 from jianxiaoguo/master
chore(builder): upgrade k8s.io/github.com/docker/distribution version
2 parents 4628777 + 5a947ca commit a65daac

23 files changed

Lines changed: 429 additions & 353 deletions

boot.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/drycc/builder/pkg/sys"
1919
pkglog "github.com/drycc/pkg/log"
2020
"github.com/kelseyhightower/envconfig"
21-
kcl "k8s.io/kubernetes/pkg/client/unversioned"
21+
"github.com/drycc/builder/pkg/k8s"
2222
)
2323

2424
const (
@@ -68,22 +68,22 @@ func main() {
6868
os.Exit(1)
6969
}
7070

71-
kubeClient, err := kcl.NewInCluster()
71+
kubeClient, err := k8s.NewInCluster()
7272
if err != nil {
7373
log.Printf("Error getting kubernetes client [%s]", err)
7474
os.Exit(1)
7575
}
7676
log.Printf("Starting health check server on port %d", cnf.HealthSrvPort)
7777
healthSrvCh := make(chan error)
7878
go func() {
79-
if err := healthsrv.Start(cnf, kubeClient.Namespaces(), storageDriver, circ); err != nil {
79+
if err := healthsrv.Start(cnf, kubeClient.CoreV1().Namespaces(), storageDriver, circ); err != nil {
8080
healthSrvCh <- err
8181
}
8282
}()
8383
log.Printf("Starting deleted app cleaner")
8484
cleanerErrCh := make(chan error)
8585
go func() {
86-
if err := cleaner.Run(gitHomeDir, kubeClient.Namespaces(), fs, cnf.CleanerPollSleepDuration(), storageDriver); err != nil {
86+
if err := cleaner.Run(gitHomeDir, kubeClient.CoreV1().Namespaces(), fs, cnf.CleanerPollSleepDuration(), storageDriver); err != nil {
8787
cleanerErrCh <- err
8888
}
8989
}()

go.mod

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,21 @@ module github.com/drycc/builder
33
go 1.13
44

55
require (
6-
github.com/Azure/azure-sdk-for-go v35.0.0+incompatible // indirect
7-
github.com/PuerkitoBio/purell v1.1.1 // indirect
8-
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
9-
github.com/Sirupsen/logrus v0.7.3 // indirect
106
github.com/arschles/assert v0.0.0-20150820224400-6882f85ccdc7
117
github.com/aws/aws-sdk-go v1.28.2
12-
github.com/blang/semver v3.5.0+incompatible // indirect
138
github.com/codegangsta/cli v1.9.0
14-
github.com/cyphar/filepath-securejoin v0.2.2 // indirect
15-
github.com/docker/distribution v0.0.0-00010101000000-000000000000
16-
github.com/docker/docker v1.4.2-0.20150722082610-0f5c9d301b9b // indirect
17-
github.com/docker/go-units v0.4.0 // indirect
9+
github.com/docker/distribution v2.7.1+incompatible
10+
github.com/docker/go-metrics v0.0.1 // indirect
1811
github.com/drycc/controller-sdk-go v0.0.0-20190417134318-39a6c81f21f3
1912
github.com/drycc/pkg v0.0.0-20190121053802-5c1dfa7b5446
20-
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
21-
github.com/ghodss/yaml v1.0.0 // indirect
22-
github.com/go-ini/ini v1.8.6 // indirect
23-
github.com/google/cadvisor v0.35.0 // indirect
24-
github.com/google/gofuzz v1.1.0 // indirect
25-
github.com/gorilla/context v1.1.1 // indirect
26-
github.com/gorilla/mux v1.7.0 // indirect
27-
github.com/goware/urlx v0.0.0-20160722204212-8bb4a2e4339f // indirect
28-
github.com/juju/ratelimit v0.0.0-20151125201925-77ed1c8a0121 // indirect
13+
github.com/gorilla/mux v1.7.4 // indirect
14+
github.com/goware/urlx v0.3.1 // indirect
2915
github.com/kelseyhightower/envconfig v1.2.0
30-
github.com/mitchellh/mapstructure v1.1.2 // indirect
31-
github.com/ncw/swift v1.0.20-0.20151102203822-c54732e87b0b // indirect
32-
github.com/opencontainers/runc v0.0.7 // indirect
33-
github.com/opencontainers/runtime-spec v1.0.2 // indirect
3416
github.com/pborman/uuid v1.2.0
35-
github.com/prometheus/client_golang v1.0.0 // indirect
36-
github.com/prometheus/client_model v0.2.0 // indirect
37-
github.com/spf13/pflag v1.0.5 // indirect
38-
github.com/ugorji/go v0.0.0-20160211161415-f4485b318aad // indirect
39-
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
40-
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
41-
golang.org/x/tools v0.0.0-20200725200936-102e7d357031 // indirect
42-
google.golang.org/api v0.6.1-0.20190607001116-5213b8090861 // indirect
43-
google.golang.org/cloud v0.0.0-20151119220103-975617b05ea8 // indirect
44-
google.golang.org/grpc v1.26.0 // indirect
17+
github.com/sirupsen/logrus v1.6.0 // indirect
18+
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975
4519
gopkg.in/yaml.v2 v2.2.8
46-
k8s.io/kubernetes v1.2.4
47-
speter.net/go/exp/math/dec/inf v0.0.0-00010101000000-000000000000 // indirect
48-
)
49-
50-
replace (
51-
bitbucket.org/ww/goautoneg => github.com/rancher/goautoneg v0.0.0-20120707110453-a547fc61f48d
52-
github.com/Sirupsen/logrus => github.com/sirupsen/logrus v0.7.3
53-
github.com/docker/distribution => github.com/drycc/distribution v2.1.2-0.20160613220734-0afef00d5764+incompatible
54-
github.com/emicklei/go-restful => github.com/emicklei/go-restful v1.1.4-0.20151126145626-777bb3f19bca
55-
github.com/influxdb/influxdb => github.com/influxdata/influxdb v1.8.1
56-
github.com/microsoft/hcsshim => github.com/Microsoft/hcsshim v0.8.9
57-
github.com/renstrom/dedent => github.com/lithammer/dedent v1.1.0
58-
speter.net/go/exp/math/dec/inf => github.com/belua/inf v0.0.0-20151208101502-46a406493388
59-
)
20+
k8s.io/api v0.18.6
21+
k8s.io/apimachinery v0.18.6
22+
k8s.io/client-go v0.18.6
23+
)

0 commit comments

Comments
 (0)