in 02_bootstrap-scripts-python/bootstrap/helm.py [0:0]
def run(self, force_output=False):
run_args = [self.helm.bin]
run_args.append(self.main_arg)
if self.release is not None:
run_args.append(self.release)
if self.chart_path is not None:
run_args.append(self.chart_path)
if self.values_path is not None:
run_args.extend(['-f', self.values_path])
run_args.extend(self.args)
print(run_args)
p = subprocess.run(run_args, capture_output=True)
self.exit_code = p.returncode
if self.exit_code != 0 or force_output:
print(p.stdout.decode('unicode_escape'))
print(p.stderr.decode('unicode_escape'), file=sys.stderr)