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
a197fbdf
Commit
a197fbdf
authored
Feb 14, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Feb 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #40912 from yu-song/fix_comment
Automatic merge from submit-queue Fix comment for method SetForTests cc @dchen1107
parents
4faa1e49
56fa7512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
capabilities.go
pkg/capabilities/capabilities.go
+1
-1
No files found.
pkg/capabilities/capabilities.go
View file @
a197fbdf
...
@@ -68,7 +68,7 @@ func Setup(allowPrivileged bool, privilegedSources PrivilegedSources, perConnect
...
@@ -68,7 +68,7 @@ func Setup(allowPrivileged bool, privilegedSources PrivilegedSources, perConnect
})
})
}
}
// Set
CapabilitiesForT
ests. Convenience method for testing. This should only be called from tests.
// Set
ForTests sets capabilities for t
ests. Convenience method for testing. This should only be called from tests.
func
SetForTests
(
c
Capabilities
)
{
func
SetForTests
(
c
Capabilities
)
{
lock
.
Lock
()
lock
.
Lock
()
defer
lock
.
Unlock
()
defer
lock
.
Unlock
()
...
...
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