Commit 8c8a9f85 authored by renxiang's avatar renxiang

fixes: some wrong comments

parent 30c7df5c
...@@ -40,7 +40,7 @@ type csrStrategy struct { ...@@ -40,7 +40,7 @@ type csrStrategy struct {
// CSR objects. // CSR objects.
var Strategy = csrStrategy{legacyscheme.Scheme, names.SimpleNameGenerator} var Strategy = csrStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
// NamespaceScoped is true for CSRs. // NamespaceScoped is false for CSRs.
func (csrStrategy) NamespaceScoped() bool { func (csrStrategy) NamespaceScoped() bool {
return false return false
} }
......
...@@ -44,7 +44,7 @@ var _ rest.RESTCreateStrategy = Strategy ...@@ -44,7 +44,7 @@ var _ rest.RESTCreateStrategy = Strategy
// Strategy should implement rest.RESTUpdateStrategy // Strategy should implement rest.RESTUpdateStrategy
var _ rest.RESTUpdateStrategy = Strategy var _ rest.RESTUpdateStrategy = Strategy
// NamespaceScoped is true for ClusterRoles. // NamespaceScoped is false for ClusterRoles.
func (strategy) NamespaceScoped() bool { func (strategy) NamespaceScoped() bool {
return false return false
} }
......
...@@ -44,7 +44,7 @@ var _ rest.RESTCreateStrategy = Strategy ...@@ -44,7 +44,7 @@ var _ rest.RESTCreateStrategy = Strategy
// Strategy should implement rest.RESTUpdateStrategy // Strategy should implement rest.RESTUpdateStrategy
var _ rest.RESTUpdateStrategy = Strategy var _ rest.RESTUpdateStrategy = Strategy
// NamespaceScoped is true for ClusterRoleBindings. // NamespaceScoped is false for ClusterRoleBindings.
func (strategy) NamespaceScoped() bool { func (strategy) NamespaceScoped() bool {
return false return false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment