diff --git a/stx/lib/stx/config.py b/stx/lib/stx/config.py index 2b40be32..70e444bd 100644 --- a/stx/lib/stx/config.py +++ b/stx/lib/stx/config.py @@ -131,7 +131,10 @@ class Config: def _init_kubectl_cmd(self): # helm - self.helm_cmd = 'helm' + if self.use_minikube: + self.helm_cmd = f'helm --kube-context {self.minikube_profile}' + else: + self.helm_cmd = 'helm' # kubectl if self.use_minikube: self.kubectl_cmd = f'minikube -p {self.minikube_profile} kubectl --' diff --git a/stx/lib/stx/stx_control.py b/stx/lib/stx/stx_control.py index 76e2552b..c5a75523 100644 --- a/stx/lib/stx/stx_control.py +++ b/stx/lib/stx/stx_control.py @@ -208,7 +208,7 @@ stx-pkgbuilder/configmap/') os.system(cmd) # Update the dependency charts - cmd = 'helm dependency update ' + self.abs_helmchartdir + cmd = self.config.helm() + ' dependency update ' + self.abs_helmchartdir self.logger.debug('Dependency build command: %s', cmd) subprocess.call(cmd, shell=True)