remove unnecessary factory delegation for RESTClientGetter method
This commit is contained in:

committed by
Maciej Szulik

parent
4da73a5f3d
commit
c85e69aeb9
@@ -158,7 +158,7 @@ type factoryAttrsPluginEnvProvider struct {
|
||||
}
|
||||
|
||||
func (p *factoryAttrsPluginEnvProvider) Env() (plugins.EnvList, error) {
|
||||
cmdNamespace, _, err := p.factory.DefaultNamespace()
|
||||
cmdNamespace, _, err := p.factory.ToRawKubeConfigLoader().Namespace()
|
||||
if err != nil {
|
||||
return plugins.EnvList{}, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user