Skip to content

Commit 274264c

Browse files
committed
Use k8s 1.21.0 toolchain
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent cbfe825 commit 274264c

File tree

107 files changed

+13955
-5910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+13955
-5910
lines changed

cmd/stash-mysql/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323
_ "stash.appscode.dev/apimachinery/client/clientset/versioned/fake"
2424
"stash.appscode.dev/mysql/pkg"
2525

26-
"gomodules.xyz/x/log"
2726
_ "k8s.io/client-go/kubernetes/fake"
2827
_ "k8s.io/client-go/plugin/pkg/client/auth"
28+
"k8s.io/klog/v2"
2929
"kmodules.xyz/client-go/logs"
3030
)
3131

@@ -38,6 +38,6 @@ func main() {
3838
}
3939

4040
if err := pkg.NewRootCmd().Execute(); err != nil {
41-
log.Fatalln("error:", err)
41+
klog.Fatalln("error:", err)
4242
}
4343
}

go.mod

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
module stash.appscode.dev/mysql
22

3-
go 1.12
3+
go 1.15
44

55
require (
66
github.com/codeskyblue/go-sh v0.0.0-20200712050446-30169cf553fe
7-
github.com/spf13/cobra v1.1.1
8-
go.bytebuilders.dev/license-verifier/kubernetes v0.9.0
9-
gomodules.xyz/x v0.0.0-20201105065653-91c568df6331
7+
github.com/spf13/cobra v1.1.3
8+
go.bytebuilders.dev/license-verifier/kubernetes v0.9.1
9+
gomodules.xyz/x v0.0.3
1010
k8s.io/api v0.21.0
1111
k8s.io/apimachinery v0.21.0
1212
k8s.io/client-go v0.21.0
13-
k8s.io/kubernetes v1.21.0 // indirect
14-
kmodules.xyz/client-go v0.0.0-20210429233600-944c5ec810d6
15-
kmodules.xyz/custom-resources v0.0.0-20210427204948-b63e86e6b5f6
16-
kmodules.xyz/objectstore-api v0.0.0-20210427073544-4d4b3fd133fe // indirect
17-
kmodules.xyz/offshoot-api v0.0.0-20210427074508-992086875c1e
18-
kmodules.xyz/prober v0.0.0-20210427091238-7208ea3e0584 // indirect
19-
stash.appscode.dev/apimachinery v0.12.3
13+
k8s.io/klog/v2 v2.8.0
14+
kmodules.xyz/client-go v0.0.0-20210504024435-1eb80721e9b8
15+
kmodules.xyz/custom-resources v0.0.0-20210504034124-54c54fcdb690
16+
kmodules.xyz/offshoot-api v0.0.0-20210504040651-7951e351f0f5
17+
stash.appscode.dev/apimachinery v0.13.1-0.20210504142328-ae1654642a82
2018
)
2119

22-
replace git.apache.org/thrift.git => github.com/apache/thrift v0.13.0
23-
24-
replace github.com/Azure/go-autorest/autorest/azure/auth => github.com/Azure/go-autorest/autorest/azure/auth v0.2.0
25-
2620
replace bitbucket.org/ww/goautoneg => gomodules.xyz/goautoneg v0.0.0-20120707110453-a547fc61f48d
2721

2822
replace cloud.google.com/go => cloud.google.com/go v0.54.0
@@ -59,6 +53,10 @@ replace github.com/Azure/go-autorest/logger => github.com/Azure/go-autorest/logg
5953

6054
replace github.com/Azure/go-autorest/tracing => github.com/Azure/go-autorest/tracing v0.6.0
6155

56+
replace github.com/docker/distribution => github.com/docker/distribution v0.0.0-20191216044856-a8371794149d
57+
58+
replace github.com/docker/docker => github.com/moby/moby v17.12.0-ce-rc1.0.20200618181300-9dc6525e6118+incompatible
59+
6260
replace github.com/go-openapi/analysis => github.com/go-openapi/analysis v0.19.5
6361

6462
replace github.com/go-openapi/errors => github.com/go-openapi/errors v0.19.2
@@ -103,7 +101,7 @@ replace google.golang.org/genproto => google.golang.org/genproto v0.0.0-20201110
103101

104102
replace google.golang.org/grpc => google.golang.org/grpc v1.27.1
105103

106-
replace helm.sh/helm/v3 => github.com/kubepack/helm/v3 v3.1.0-rc.1.0.20210427034123-21364f60dbb1
104+
replace helm.sh/helm/v3 => github.com/kubepack/helm/v3 v3.1.0-rc.1.0.20210503022716-7e2d4913a125
107105

108106
replace k8s.io/api => k8s.io/api v0.21.0
109107

@@ -117,7 +115,7 @@ replace k8s.io/client-go => k8s.io/client-go v0.21.0
117115

118116
replace k8s.io/component-base => k8s.io/component-base v0.21.0
119117

120-
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd
118+
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7
121119

122120
replace k8s.io/kubernetes => github.com/kmodules/kubernetes v1.22.0-alpha.0.0.20210427080452-22d2e66bae50
123121

go.sum

Lines changed: 63 additions & 45 deletions
Large diffs are not rendered by default.

hack/scripts/cherry-pick.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ while IFS=/ read -r -u9 repo branch; do
4242
--labels automerge \
4343
--message "[cherry-pick] $(git show -s --format=%s)" \
4444
--message "$(git show -s --format=%b | sed --expression='/\/cherry-pick/d')" || true
45-
sleep 2
45+
sleep 15
4646
done 9< <(git branch -r | grep release)

pkg/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424
"stash.appscode.dev/apimachinery/pkg/restic"
2525

2626
"github.com/codeskyblue/go-sh"
27-
"gomodules.xyz/x/log"
2827
core "k8s.io/api/core/v1"
2928
"k8s.io/client-go/kubernetes"
29+
"k8s.io/klog/v2"
3030
"kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1"
3131
appcatalog_cs "kmodules.xyz/custom-resources/client/clientset/versioned"
3232
)
@@ -58,7 +58,7 @@ type mysqlOptions struct {
5858
}
5959

6060
func (opt *mysqlOptions) waitForDBReady(appBinding *v1alpha1.AppBinding, secret *core.Secret) error {
61-
log.Infoln("Waiting for the database to be ready.....")
61+
klog.Infoln("Waiting for the database to be ready.....")
6262
shell := sh.NewSession()
6363
shell.SetEnv(EnvMySqlPassword, string(secret.Data[MySqlPassword]))
6464
args := []interface{}{

vendor/github.com/spf13/cobra/.golangci.yml

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/.travis.yml

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/CHANGELOG.md

Lines changed: 32 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/CONDUCT.md

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/Makefile

Lines changed: 11 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)