fix unit test for TLS and linted packages

parent 31931741
......@@ -5,6 +5,7 @@ cmd/gendocs
cmd/genkubedocs
cmd/genman
cmd/genswaggertypedocs
cmd/genyaml
cmd/integration
cmd/kube-apiserver
cmd/kube-apiserver/app
......@@ -184,6 +185,7 @@ pkg/util/json
pkg/util/limitwriter
pkg/util/logs
pkg/util/maps
pkg/util/metrics
pkg/util/replicaset
pkg/util/validation/field
pkg/util/workqueue
......@@ -213,6 +215,7 @@ plugin/pkg/auth/authenticator/password
plugin/pkg/auth/authenticator/password/allow
plugin/pkg/auth/authenticator/request/basicauth
plugin/pkg/auth/authenticator/request/union
plugin/pkg/auth/authenticator/request/x509
plugin/pkg/auth/authorizer
plugin/pkg/auth/authorizer/rbac/bootstrappolicy
plugin/pkg/client/auth
......
......@@ -34,7 +34,7 @@ const (
var (
metricsLock sync.Mutex
rateLimiterMetrics map[string]prometheus.Gauge = make(map[string]prometheus.Gauge)
rateLimiterMetrics = make(map[string]prometheus.Gauge)
)
func registerRateLimiterMetric(ownerName string) error {
......
......@@ -52,6 +52,8 @@ func TestCloneTLSConfig(t *testing.T) {
// These fields are not copied
"SessionTicketsDisabled",
"SessionTicketKey",
"DynamicRecordSizingDisabled",
"Renegotiation",
// These fields are unexported
"serverInitOnce",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment