mirror of https://github.com/k3s-io/k3s
fix unit test for TLS and linted packages
Signed-off-by: Jess Frazelle <acidburn@google.com>pull/6/head
parent
3193174142
commit
20db0ad0ab
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue