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
538776d6
Commit
538776d6
authored
Apr 24, 2019
by
SataQiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix golint failures of pkg/registry/rbac/role
parent
55d1b5e3
Show 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/role/doc.go
+1
-1
registry.go
pkg/registry/rbac/role/registry.go
+1
-0
strategy.go
pkg/registry/rbac/role/strategy.go
+1
-1
No files found.
hack/.golint_failures
View file @
538776d6
...
@@ -293,7 +293,6 @@ pkg/registry/rbac/clusterrolebinding
...
@@ -293,7 +293,6 @@ pkg/registry/rbac/clusterrolebinding
pkg/registry/rbac/clusterrolebinding/policybased
pkg/registry/rbac/clusterrolebinding/policybased
pkg/registry/rbac/reconciliation
pkg/registry/rbac/reconciliation
pkg/registry/rbac/rest
pkg/registry/rbac/rest
pkg/registry/rbac/role
pkg/registry/rbac/role/policybased
pkg/registry/rbac/role/policybased
pkg/registry/rbac/rolebinding
pkg/registry/rbac/rolebinding
pkg/registry/rbac/rolebinding/policybased
pkg/registry/rbac/rolebinding/policybased
...
...
pkg/registry/rbac/role/doc.go
View file @
538776d6
...
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
...
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
// Package
certificates
provides Registry interface and its RESTStorage
// Package
role
provides Registry interface and its RESTStorage
// implementation for storing Role objects.
// implementation for storing Role objects.
package
role
// import "k8s.io/kubernetes/pkg/registry/rbac/role"
package
role
// import "k8s.io/kubernetes/pkg/registry/rbac/role"
pkg/registry/rbac/role/registry.go
View file @
538776d6
...
@@ -61,6 +61,7 @@ type AuthorizerAdapter struct {
...
@@ -61,6 +61,7 @@ type AuthorizerAdapter struct {
Registry
Registry
Registry
Registry
}
}
// GetRole returns the corresponding Role by name in specified namespace
func
(
a
AuthorizerAdapter
)
GetRole
(
namespace
,
name
string
)
(
*
rbacv1
.
Role
,
error
)
{
func
(
a
AuthorizerAdapter
)
GetRole
(
namespace
,
name
string
)
(
*
rbacv1
.
Role
,
error
)
{
return
a
.
Registry
.
GetRole
(
genericapirequest
.
WithNamespace
(
genericapirequest
.
NewContext
(),
namespace
),
name
,
&
metav1
.
GetOptions
{})
return
a
.
Registry
.
GetRole
(
genericapirequest
.
WithNamespace
(
genericapirequest
.
NewContext
(),
namespace
),
name
,
&
metav1
.
GetOptions
{})
}
}
pkg/registry/rbac/role/strategy.go
View file @
538776d6
...
@@ -34,7 +34,7 @@ type strategy struct {
...
@@ -34,7 +34,7 @@ type strategy struct {
names
.
NameGenerator
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
// Role objects.
// Role objects.
var
Strategy
=
strategy
{
legacyscheme
.
Scheme
,
names
.
SimpleNameGenerator
}
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