add SetNamespace method for EnvSettings, in order to set namespace in helm sdk

Signed-off-by: yxxhero <aiopsclub@163.com>
pull/10230/head
yxxhero 3 years ago
parent 779d6c559c
commit d376a67ba8

@ -180,6 +180,11 @@ func (s *EnvSettings) Namespace() string {
return "default"
}
// SetNamespace sets the namespace in the configuration
func (s *EnvSettings) SetNamespace(namespace string) {
s.namespace = namespace
}
// RESTClientGetter gets the kubeconfig from EnvSettings
func (s *EnvSettings) RESTClientGetter() genericclioptions.RESTClientGetter {
return s.config

Loading…
Cancel
Save