mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Add TLS conf for Go1.7
This commit is contained in:
parent
24b3f6c494
commit
3bfe14b316
@ -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) {
|
|||||||
// 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) {
|
|||||||
"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++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user