Skip to content

Commit

Permalink
Fix for getting local cluster for Helm Chart testing in
Browse files Browse the repository at this point in the history
case testing on shared cluster is suppressed

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Dec 5, 2024
1 parent b79d6ab commit a5415df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion container_ci_suite/engines/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def login_to_cluster(self, shared_cluster: bool = False):
return None
cmd = f"login --token={token} --server={url}"
else:
url = load_shared_credentials("LOCAL_CLUSTER_URL")
url = get_shared_variable("local_cluster_url")
password = get_file_content(filename=Path("/root/.kube/ocp-kube"))
cmd = f"login -u kubeadmin -p {password} --server={url}"
output = run_oc_command(cmd, json_output=False)
Expand Down
1 change: 0 additions & 1 deletion container_ci_suite/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ def helm_installation(self, values: Dict = None):
json_output = self.get_helm_json_output(
f"install {self.package_name} {self.get_full_tarball_path} {command_values}"
)
print(f"Output from installation '{json_output}'.")
if json_output:
install_success = True
break
Expand Down

0 comments on commit a5415df

Please sign in to comment.