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
20db0ad0
Unverified
Commit
20db0ad0
authored
Oct 10, 2016
by
Jess Frazelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unit test for TLS and linted packages
Signed-off-by:
Jess Frazelle
<
acidburn@google.com
>
parent
31931741
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
.linted_packages
hack/.linted_packages
+3
-0
util.go
pkg/util/metrics/util.go
+1
-1
http_test.go
pkg/util/net/http_test.go
+2
-0
No files found.
hack/.linted_packages
View file @
20db0ad0
...
@@ -5,6 +5,7 @@ cmd/gendocs
...
@@ -5,6 +5,7 @@ cmd/gendocs
cmd/genkubedocs
cmd/genkubedocs
cmd/genman
cmd/genman
cmd/genswaggertypedocs
cmd/genswaggertypedocs
cmd/genyaml
cmd/integration
cmd/integration
cmd/kube-apiserver
cmd/kube-apiserver
cmd/kube-apiserver/app
cmd/kube-apiserver/app
...
@@ -184,6 +185,7 @@ pkg/util/json
...
@@ -184,6 +185,7 @@ pkg/util/json
pkg/util/limitwriter
pkg/util/limitwriter
pkg/util/logs
pkg/util/logs
pkg/util/maps
pkg/util/maps
pkg/util/metrics
pkg/util/replicaset
pkg/util/replicaset
pkg/util/validation/field
pkg/util/validation/field
pkg/util/workqueue
pkg/util/workqueue
...
@@ -213,6 +215,7 @@ plugin/pkg/auth/authenticator/password
...
@@ -213,6 +215,7 @@ plugin/pkg/auth/authenticator/password
plugin/pkg/auth/authenticator/password/allow
plugin/pkg/auth/authenticator/password/allow
plugin/pkg/auth/authenticator/request/basicauth
plugin/pkg/auth/authenticator/request/basicauth
plugin/pkg/auth/authenticator/request/union
plugin/pkg/auth/authenticator/request/union
plugin/pkg/auth/authenticator/request/x509
plugin/pkg/auth/authorizer
plugin/pkg/auth/authorizer
plugin/pkg/auth/authorizer/rbac/bootstrappolicy
plugin/pkg/auth/authorizer/rbac/bootstrappolicy
plugin/pkg/client/auth
plugin/pkg/client/auth
...
...
pkg/util/metrics/util.go
View file @
20db0ad0
...
@@ -34,7 +34,7 @@ const (
...
@@ -34,7 +34,7 @@ const (
var
(
var
(
metricsLock
sync
.
Mutex
metricsLock
sync
.
Mutex
rateLimiterMetrics
map
[
string
]
prometheus
.
Gauge
=
make
(
map
[
string
]
prometheus
.
Gauge
)
rateLimiterMetrics
=
make
(
map
[
string
]
prometheus
.
Gauge
)
)
)
func
registerRateLimiterMetric
(
ownerName
string
)
error
{
func
registerRateLimiterMetric
(
ownerName
string
)
error
{
...
...
pkg/util/net/http_test.go
View file @
20db0ad0
...
@@ -52,6 +52,8 @@ func TestCloneTLSConfig(t *testing.T) {
...
@@ -52,6 +52,8 @@ 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"
,
...
...
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