diff --git a/pkg/endpoints/installer.go b/pkg/endpoints/installer.go index 0902add48..9b6cb98c5 100644 --- a/pkg/endpoints/installer.go +++ b/pkg/endpoints/installer.go @@ -217,7 +217,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag isSubresource := len(subresource) > 0 // If there is a subresource, namespace scoping is defined by the parent resource - namespaceScoped := true + var namespaceScoped bool if isSubresource { parentStorage, ok := a.group.Storage[resource] if !ok {