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
55d1b5e3
Commit
55d1b5e3
authored
Apr 24, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix golint failures of pkg/registry/rbac/clusterrole
parent
d76f1a8f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
.golint_failures
hack/.golint_failures
+0
-1
doc.go
pkg/registry/rbac/clusterrole/doc.go
+1
-1
registry.go
pkg/registry/rbac/clusterrole/registry.go
+1
-0
strategy.go
pkg/registry/rbac/clusterrole/strategy.go
+1
-1
No files found.
hack/.golint_failures
View file @
55d1b5e3
...
...
@@ -288,7 +288,6 @@ pkg/registry/networking/rest
pkg/registry/node/rest
pkg/registry/policy/poddisruptionbudget/storage
pkg/registry/policy/rest
pkg/registry/rbac/clusterrole
pkg/registry/rbac/clusterrole/policybased
pkg/registry/rbac/clusterrolebinding
pkg/registry/rbac/clusterrolebinding/policybased
...
...
pkg/registry/rbac/clusterrole/doc.go
View file @
55d1b5e3
...
...
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Package c
ertificates
provides Registry interface and its RESTStorage
// Package c
lusterrole
provides Registry interface and its RESTStorage
// implementation for storing ClusterRole objects.
package
clusterrole
// import "k8s.io/kubernetes/pkg/registry/rbac/clusterrole"
pkg/registry/rbac/clusterrole/registry.go
View file @
55d1b5e3
...
...
@@ -61,6 +61,7 @@ type AuthorizerAdapter struct {
Registry
Registry
}
// GetClusterRole returns the corresponding ClusterRole by name
func
(
a
AuthorizerAdapter
)
GetClusterRole
(
name
string
)
(
*
rbacv1
.
ClusterRole
,
error
)
{
return
a
.
Registry
.
GetClusterRole
(
genericapirequest
.
NewContext
(),
name
,
&
metav1
.
GetOptions
{})
}
pkg/registry/rbac/clusterrole/strategy.go
View file @
55d1b5e3
...
...
@@ -34,7 +34,7 @@ type strategy struct {
names
.
NameGenerator
}
//
s
trategy is the default logic that applies when creating and updating
//
S
trategy is the default logic that applies when creating and updating
// ClusterRole objects.
var
Strategy
=
strategy
{
legacyscheme
.
Scheme
,
names
.
SimpleNameGenerator
}
...
...
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