Skip to content

Commit a887ae8

Browse files
authored
Merge pull request kubernetes#74208 from lrx0014/unittest
fixes: some wrong comments
2 parents f35b7a3 + 8c8a9f8 commit a887ae8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/registry/certificates/certificates/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type csrStrategy struct {
4040
// CSR objects.
4141
var Strategy = csrStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
4242

43-
// NamespaceScoped is true for CSRs.
43+
// NamespaceScoped is false for CSRs.
4444
func (csrStrategy) NamespaceScoped() bool {
4545
return false
4646
}

pkg/registry/rbac/clusterrole/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var _ rest.RESTCreateStrategy = Strategy
4444
// Strategy should implement rest.RESTUpdateStrategy
4545
var _ rest.RESTUpdateStrategy = Strategy
4646

47-
// NamespaceScoped is true for ClusterRoles.
47+
// NamespaceScoped is false for ClusterRoles.
4848
func (strategy) NamespaceScoped() bool {
4949
return false
5050
}

pkg/registry/rbac/clusterrolebinding/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var _ rest.RESTCreateStrategy = Strategy
4444
// Strategy should implement rest.RESTUpdateStrategy
4545
var _ rest.RESTUpdateStrategy = Strategy
4646

47-
// NamespaceScoped is true for ClusterRoleBindings.
47+
// NamespaceScoped is false for ClusterRoleBindings.
4848
func (strategy) NamespaceScoped() bool {
4949
return false
5050
}

0 commit comments

Comments
 (0)