Skip to content

Commit

Permalink
[cherry-pick] Use k8s 1.21.1 toolchain (#428) (#429)
Browse files Browse the repository at this point in the history
/cherry-pick

Signed-off-by: Tamal Saha <tamal@appscode.com>

Co-authored-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
1gtm and tamalsaha authored Jun 18, 2021
1 parent fbbdea8 commit 12edbc1
Show file tree
Hide file tree
Showing 99 changed files with 4,903 additions and 926 deletions.
34 changes: 15 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@ module stash.appscode.dev/mysql
go 1.15

require (
cloud.google.com/go v0.58.0 // indirect
github.com/spf13/cobra v1.1.3
go.bytebuilders.dev/license-verifier/kubernetes v0.9.1
go.bytebuilders.dev/license-verifier/kubernetes v0.9.2
gomodules.xyz/flags v0.1.0
gomodules.xyz/go-sh v0.1.0
gomodules.xyz/logs v0.0.2
gomodules.xyz/x v0.0.5
k8s.io/api v0.21.0
k8s.io/apimachinery v0.21.0
k8s.io/client-go v0.21.0
k8s.io/api v0.21.1
k8s.io/apimachinery v0.21.1
k8s.io/client-go v0.21.1
k8s.io/klog/v2 v2.8.0
kmodules.xyz/client-go v0.0.0-20210605021217-cabaee7b953e
kmodules.xyz/custom-resources v0.0.0-20210605111625-741fcb992541
kmodules.xyz/offshoot-api v0.0.0-20210504040651-7951e351f0f5
kmodules.xyz/prober v0.0.0-20210504215326-2e406706b970 // indirect
stash.appscode.dev/apimachinery v0.14.0
kmodules.xyz/client-go v0.0.0-20210617233340-13d22e91512b
kmodules.xyz/custom-resources v0.0.0-20210618003440-c6bb400da153
kmodules.xyz/offshoot-api v0.0.0-20210618005544-5217a24765da
stash.appscode.dev/apimachinery v0.14.1-0.20210618025054-0cae462d7e04
)

replace bitbucket.org/ww/goautoneg => gomodules.xyz/goautoneg v0.0.0-20120707110453-a547fc61f48d
Expand Down Expand Up @@ -89,8 +87,6 @@ replace github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.4.1

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

replace github.com/jetstack/cert-manager => github.com/kmodules/cert-manager v1.3.1-0.20210429172957-c5436c14ce0e

replace github.com/prometheus-operator/prometheus-operator => github.com/prometheus-operator/prometheus-operator v0.47.0

replace github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring => github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.47.0
Expand All @@ -107,21 +103,21 @@ replace google.golang.org/grpc => google.golang.org/grpc v1.27.1

replace helm.sh/helm/v3 => github.com/kubepack/helm/v3 v3.1.0-rc.1.0.20210503022716-7e2d4913a125

replace k8s.io/api => k8s.io/api v0.21.0
replace k8s.io/api => k8s.io/api v0.21.1

replace k8s.io/apimachinery => github.com/kmodules/apimachinery v0.21.1-rc.0.0.20210405112358-ad4c2289ba4c
replace k8s.io/apimachinery => github.com/kmodules/apimachinery v0.21.2-rc.0.0.20210617231004-332981b97d2d

replace k8s.io/apiserver => github.com/kmodules/apiserver v0.21.1-0.20210427013338-53dee545b83c
replace k8s.io/apiserver => github.com/kmodules/apiserver v0.21.2-0.20210617231348-daadbf0c8d5e

replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.21.0
replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.21.1

replace k8s.io/client-go => k8s.io/client-go v0.21.0
replace k8s.io/client-go => k8s.io/client-go v0.21.1

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

replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7

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

replace k8s.io/utils => k8s.io/utils v0.0.0-20201110183641-67b214c5f920

Expand Down
173 changes: 104 additions & 69 deletions go.sum

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions vendor/github.com/evanphx/json-patch/.travis.yml

This file was deleted.

19 changes: 19 additions & 0 deletions vendor/github.com/evanphx/json-patch/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 18 additions & 15 deletions vendor/github.com/evanphx/json-patch/merge.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/evanphx/json-patch/patch.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/hashicorp/golang-lru/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 41 additions & 7 deletions vendor/github.com/hashicorp/golang-lru/lru.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions vendor/github.com/hashicorp/golang-lru/simplelru/lru.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/go.bytebuilders.dev/license-verifier/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif
### These variables should not need tweaking.
###

SRC_PKGS := apis # directories which hold app source excluding tests (not vendored)
SRC_PKGS := apis info # directories which hold app source excluding tests (not vendored)
SRC_DIRS := $(SRC_PKGS) *.go # directories which hold app source (not vendored)

DOCKER_PLATFORMS := linux/amd64 linux/arm linux/arm64
Expand Down
10 changes: 10 additions & 0 deletions vendor/go.bytebuilders.dev/license-verifier/info/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@ var (

ProductName string // This has been renamed to Features
ProductUID string

prodRegistrationAPIEndpoint string = "https://byte.builders/api/v1/register"
qaRegistrationAPIEndpoint string = "https://appscode.ninja/api/v1/register"
)

func SkipLicenseVerification() bool {
v, _ := strconv.ParseBool(EnforceLicense)
return !v
}

func RegistrationAPIEndpoint() string {
if SkipLicenseVerification() {
return qaRegistrationAPIEndpoint
}
return prodRegistrationAPIEndpoint
}
Loading

0 comments on commit 12edbc1

Please sign in to comment.