Skip to content

Commit

Permalink
integration: Install Longhorn prerequisites
Browse files Browse the repository at this point in the history
According to the deployment guide, the node requires open-iscsi and
nfs-common. These daemonsets will install them on the host.
  • Loading branch information
claudiubelu committed Sep 16, 2024
1 parent d85c786 commit b328fde
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/integration/test_longhorn_in_helm_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ def test_longhorn_helm_chart_deployment(
function_instance: harness.Instance, image_version: str
):

# Install prerequisites.
base_url = f"https://raw.githubusercontent.com/longhorn/longhorn/{image_version}/deploy/prerequisite"
for yaml_file in [
"longhorn-iscsi-installation.yaml",
"longhorn-nfs-installation.yaml",
]:
url = f"{base_url}/{yaml_file}"
process = function_instance.exec(
["k8s", "kubectl", "apply", "-f", url], check=True
)

architecture = platform_util.get_current_rockcraft_platform_architecture()

# Compose the Helm command line args for overriding the
Expand Down

0 comments on commit b328fde

Please sign in to comment.