Merge pull request #92611 from liggitt/go1.13

Tolerate go 1.13 builds
This commit is contained in:
Kubernetes Prow Robot 2020-07-09 00:05:50 -07:00 committed by GitHub
commit 896da2253c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 56 additions and 526 deletions

2
go.mod
View File

@ -6,7 +6,7 @@
module k8s.io/kubernetes
go 1.14
go 1.13
require (
bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690

View File

@ -1,6 +1,6 @@
module k8s.io/kubernetes/hack/tools
go 1.14
go 1.13
require (
github.com/bazelbuild/bazel-gazelle v0.19.1-0.20191105222053-70208cbdc798

View File

@ -2,7 +2,7 @@
module k8s.io/api
go 1.14
go 1.13
require (
github.com/gogo/protobuf v1.3.1

View File

@ -2,7 +2,7 @@
module k8s.io/apiextensions-apiserver
go 1.14
go 1.13
require (
github.com/emicklei/go-restful v2.9.5+incompatible

View File

@ -2,7 +2,7 @@
module k8s.io/apimachinery
go 1.14
go 1.13
require (
github.com/davecgh/go-spew v1.1.1

View File

@ -2,7 +2,7 @@
module k8s.io/apiserver
go 1.14
go 1.13
require (
github.com/coreos/go-oidc v2.1.0+incompatible

View File

@ -2,7 +2,7 @@
module k8s.io/cli-runtime
go 1.14
go 1.13
require (
github.com/davecgh/go-spew v1.1.1

View File

@ -2,7 +2,7 @@
module k8s.io/client-go
go 1.14
go 1.13
require (
cloud.google.com/go v0.51.0 // indirect

View File

@ -2,7 +2,7 @@
module k8s.io/cloud-provider
go 1.14
go 1.13
require (
github.com/google/go-cmp v0.4.0

View File

@ -2,7 +2,7 @@
module k8s.io/cluster-bootstrap
go 1.14
go 1.13
require (
github.com/stretchr/testify v1.4.0

View File

@ -2,7 +2,7 @@
module k8s.io/code-generator
go 1.14
go 1.13
require (
github.com/emicklei/go-restful v2.9.5+incompatible // indirect

View File

@ -24,6 +24,7 @@ go_library(
name = "go_default_library",
srcs = [
"ciphersuites_flag.go",
"ciphersuites_flag_114.go",
"colon_separated_multimap_string_string.go",
"configuration_map.go",
"flags.go",

View File

@ -46,10 +46,6 @@ var ciphers = map[string]uint16{
"TLS_AES_128_GCM_SHA256": tls.TLS_AES_128_GCM_SHA256,
"TLS_CHACHA20_POLY1305_SHA256": tls.TLS_CHACHA20_POLY1305_SHA256,
"TLS_AES_256_GCM_SHA384": tls.TLS_AES_256_GCM_SHA384,
// support official IANA names as well
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
}
// to be replaced by tls.InsecureCipherSuites() when the project migrates to go1.14.

View File

@ -0,0 +1,29 @@
// +build go1.14
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package flag
import (
"crypto/tls"
)
func init() {
// support official IANA names as well on go1.14
ciphers["TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"] = tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
ciphers["TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"] = tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
}

View File

@ -2,7 +2,7 @@
module k8s.io/component-base
go 1.14
go 1.13
require (
github.com/blang/semver v3.5.0+incompatible

View File

@ -2,6 +2,6 @@
module k8s.io/controller-manager
go 1.14
go 1.13
replace k8s.io/controller-manager => ../controller-manager

View File

@ -2,7 +2,7 @@
module k8s.io/cri-api
go 1.14
go 1.13
require (
github.com/davecgh/go-spew v1.1.1 // indirect

View File

@ -2,7 +2,7 @@
module k8s.io/csi-translation-lib
go 1.14
go 1.13
require (
github.com/stretchr/testify v1.4.0

View File

@ -2,7 +2,7 @@
module k8s.io/kube-aggregator
go 1.14
go 1.13
require (
github.com/davecgh/go-spew v1.1.1

View File

@ -2,7 +2,7 @@
module k8s.io/kube-controller-manager
go 1.14
go 1.13
require (
k8s.io/apimachinery v0.0.0

View File

@ -2,7 +2,7 @@
module k8s.io/kube-proxy
go 1.14
go 1.13
require (
k8s.io/apimachinery v0.0.0

View File

@ -2,7 +2,7 @@
module k8s.io/kube-scheduler
go 1.14
go 1.13
require (
github.com/google/go-cmp v0.4.0

View File

@ -2,7 +2,7 @@
module k8s.io/kubectl
go 1.14
go 1.13
require (
github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd

View File

@ -2,7 +2,7 @@
module k8s.io/kubelet
go 1.14
go 1.13
require (
github.com/gogo/protobuf v1.3.1

View File

@ -2,7 +2,7 @@
module k8s.io/legacy-cloud-providers
go 1.14
go 1.13
require (
cloud.google.com/go v0.51.0

View File

@ -2,7 +2,7 @@
module k8s.io/metrics
go 1.14
go 1.13
require (
github.com/gogo/protobuf v1.3.1

View File

@ -2,7 +2,7 @@
module k8s.io/sample-apiserver
go 1.14
go 1.13
require (
github.com/go-openapi/spec v0.19.3

View File

@ -2,7 +2,7 @@
module k8s.io/sample-cli-plugin
go 1.14
go 1.13
require (
github.com/spf13/cobra v1.0.0

View File

@ -2,7 +2,7 @@
module k8s.io/sample-controller
go 1.14
go 1.13
require (
k8s.io/api v0.0.0

496
vendor/modules.txt vendored

File diff suppressed because it is too large Load Diff