File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed
pkg/registry/rbac/clusterrole Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,6 @@ pkg/registry/networking/rest
288
288
pkg/registry/node/rest
289
289
pkg/registry/policy/poddisruptionbudget/storage
290
290
pkg/registry/policy/rest
291
- pkg/registry/rbac/clusterrole
292
291
pkg/registry/rbac/clusterrole/policybased
293
292
pkg/registry/rbac/clusterrolebinding
294
293
pkg/registry/rbac/clusterrolebinding/policybased
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- // Package certificates provides Registry interface and its RESTStorage
17
+ // Package clusterrole provides Registry interface and its RESTStorage
18
18
// implementation for storing ClusterRole objects.
19
19
package clusterrole // import "k8s.io/kubernetes/pkg/registry/rbac/clusterrole"
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ type AuthorizerAdapter struct {
61
61
Registry Registry
62
62
}
63
63
64
+ // GetClusterRole returns the corresponding ClusterRole by name
64
65
func (a AuthorizerAdapter ) GetClusterRole (name string ) (* rbacv1.ClusterRole , error ) {
65
66
return a .Registry .GetClusterRole (genericapirequest .NewContext (), name , & metav1.GetOptions {})
66
67
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ type strategy struct {
34
34
names.NameGenerator
35
35
}
36
36
37
- // strategy is the default logic that applies when creating and updating
37
+ // Strategy is the default logic that applies when creating and updating
38
38
// ClusterRole objects.
39
39
var Strategy = strategy {legacyscheme .Scheme , names .SimpleNameGenerator }
40
40
You can’t perform that action at this time.
0 commit comments