X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=xapp_onboarder%2Fxapp_onboarder%2Fhelm_controller%2FxApp_builder.py;h=da9f34aa255765302d2e979dee87a8a0893b33b2;hb=2bf6c2eb9d3fa14c0eae908a77905af6bf43b388;hp=ab314adfab18400d312cade889c87717440d7717;hpb=bdb1fffab6a85dbc6c5bd53bcbc5f8bf34098f6c;p=it%2Fdev.git diff --git a/xapp_onboarder/xapp_onboarder/helm_controller/xApp_builder.py b/xapp_onboarder/xapp_onboarder/helm_controller/xApp_builder.py index ab314ad..da9f34a 100644 --- a/xapp_onboarder/xapp_onboarder/helm_controller/xApp_builder.py +++ b/xapp_onboarder/xapp_onboarder/helm_controller/xApp_builder.py @@ -209,7 +209,12 @@ class xApp(): self.change_chart_name_version() self.helm_lint() try: - process = subprocess.run([self.helm_client_path, "package", self.chart_workspace_path + "/" + self.chart_name, "-d" + + if settings.HELM_VERSION.startswith("3") == True: + process = subprocess.run([self.helm_client_path, "package", self.chart_workspace_path + "/" + self.chart_name, "-d" + ,self.chart_workspace_path], stdout=PIPE, stderr=PIPE, check=True) + else: + process = subprocess.run([self.helm_client_path, "package", self.chart_workspace_path + "/" + self.chart_name, "-d" ,self.chart_workspace_path,"--save=false"], stdout=PIPE, stderr=PIPE, check=True) except OSError as err: