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
c66f636d
Commit
c66f636d
authored
Apr 24, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix golint failures of pkg/capabilities
parent
5a790bce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
.golint_failures
hack/.golint_failures
+0
-1
capabilities.go
pkg/capabilities/capabilities.go
+1
-1
doc.go
pkg/capabilities/doc.go
+1
-1
No files found.
hack/.golint_failures
View file @
c66f636d
...
@@ -56,7 +56,6 @@ pkg/apis/storage/v1
...
@@ -56,7 +56,6 @@ pkg/apis/storage/v1
pkg/apis/storage/v1/util
pkg/apis/storage/v1/util
pkg/apis/storage/v1beta1
pkg/apis/storage/v1beta1
pkg/apis/storage/v1beta1/util
pkg/apis/storage/v1beta1/util
pkg/capabilities
pkg/cloudprovider/providers/fake
pkg/cloudprovider/providers/fake
pkg/cloudprovider/providers/photon
pkg/cloudprovider/providers/photon
pkg/cloudprovider/providers/vsphere
pkg/cloudprovider/providers/vsphere
...
...
pkg/capabilities/capabilities.go
View file @
c66f636d
...
@@ -76,7 +76,7 @@ func SetForTests(c Capabilities) {
...
@@ -76,7 +76,7 @@ func SetForTests(c Capabilities) {
capInstance
.
capabilities
=
&
c
capInstance
.
capabilities
=
&
c
}
}
//
R
eturns a read-only copy of the system capabilities.
//
Get r
eturns a read-only copy of the system capabilities.
func
Get
()
Capabilities
{
func
Get
()
Capabilities
{
capInstance
.
lock
.
Lock
()
capInstance
.
lock
.
Lock
()
defer
capInstance
.
lock
.
Unlock
()
defer
capInstance
.
lock
.
Unlock
()
...
...
pkg/capabilities/doc.go
View file @
c66f636d
...
@@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
...
@@ -14,5 +14,5 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
//
p
ackage capabilities manages system level capabilities
//
P
ackage capabilities manages system level capabilities
package
capabilities
// import "k8s.io/kubernetes/pkg/capabilities"
package
capabilities
// import "k8s.io/kubernetes/pkg/capabilities"
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