Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
745928aa
Commit
745928aa
authored
Dec 27, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Dec 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39213 from k82cn/k8s_33936_master
Automatic merge from submit-queue (batch tested with PRs 38909, 39213) Add TLS conf for Go1.7 fixes #33936 / #38596 in master
parents
17564eda
3bfe14b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
http_test.go
pkg/util/net/http_test.go
+7
-2
No files found.
pkg/util/net/http_test.go
View file @
745928aa
...
@@ -23,6 +23,8 @@ import (
...
@@ -23,6 +23,8 @@ import (
"net/url"
"net/url"
"os"
"os"
"reflect"
"reflect"
"runtime"
"strings"
"testing"
"testing"
"k8s.io/kubernetes/pkg/util/sets"
"k8s.io/kubernetes/pkg/util/sets"
...
@@ -52,8 +54,6 @@ func TestCloneTLSConfig(t *testing.T) {
...
@@ -52,8 +54,6 @@ func TestCloneTLSConfig(t *testing.T) {
// These fields are not copied
// These fields are not copied
"SessionTicketsDisabled"
,
"SessionTicketsDisabled"
,
"SessionTicketKey"
,
"SessionTicketKey"
,
"DynamicRecordSizingDisabled"
,
"Renegotiation"
,
// These fields are unexported
// These fields are unexported
"serverInitOnce"
,
"serverInitOnce"
,
...
@@ -61,6 +61,11 @@ func TestCloneTLSConfig(t *testing.T) {
...
@@ -61,6 +61,11 @@ func TestCloneTLSConfig(t *testing.T) {
"sessionTicketKeys"
,
"sessionTicketKeys"
,
)
)
// See #33936.
if
strings
.
HasPrefix
(
runtime
.
Version
(),
"go1.7"
)
{
expected
.
Insert
(
"DynamicRecordSizingDisabled"
,
"Renegotiation"
)
}
fields
:=
sets
.
NewString
()
fields
:=
sets
.
NewString
()
structType
:=
reflect
.
TypeOf
(
tls
.
Config
{})
structType
:=
reflect
.
TypeOf
(
tls
.
Config
{})
for
i
:=
0
;
i
<
structType
.
NumField
();
i
++
{
for
i
:=
0
;
i
<
structType
.
NumField
();
i
++
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment