Skip to content

Commit 538776d

Browse files
committed
fix golint failures of pkg/registry/rbac/role
1 parent 55d1b5e commit 538776d

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

hack/.golint_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ pkg/registry/rbac/clusterrolebinding
293293
pkg/registry/rbac/clusterrolebinding/policybased
294294
pkg/registry/rbac/reconciliation
295295
pkg/registry/rbac/rest
296-
pkg/registry/rbac/role
297296
pkg/registry/rbac/role/policybased
298297
pkg/registry/rbac/rolebinding
299298
pkg/registry/rbac/rolebinding/policybased

pkg/registry/rbac/role/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package certificates provides Registry interface and its RESTStorage
17+
// Package role provides Registry interface and its RESTStorage
1818
// implementation for storing Role objects.
1919
package role // import "k8s.io/kubernetes/pkg/registry/rbac/role"

pkg/registry/rbac/role/registry.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ type AuthorizerAdapter struct {
6161
Registry Registry
6262
}
6363

64+
// GetRole returns the corresponding Role by name in specified namespace
6465
func (a AuthorizerAdapter) GetRole(namespace, name string) (*rbacv1.Role, error) {
6566
return a.Registry.GetRole(genericapirequest.WithNamespace(genericapirequest.NewContext(), namespace), name, &metav1.GetOptions{})
6667
}

pkg/registry/rbac/role/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type strategy struct {
3434
names.NameGenerator
3535
}
3636

37-
// strategy is the default logic that applies when creating and updating
37+
// Strategy is the default logic that applies when creating and updating
3838
// Role objects.
3939
var Strategy = strategy{legacyscheme.Scheme, names.SimpleNameGenerator}
4040

0 commit comments

Comments
 (0)