From a3aa533ee4f0be6e91978cd15eb6135c9e6aea1c Mon Sep 17 00:00:00 2001 From: Julien Adamek Date: Fri, 19 Jan 2024 10:26:02 +0100 Subject: [PATCH] Address review comments --- .github/workflows/master-airgap.yaml | 14 ++++---------- tests/scripts/build-airgap | 7 ++----- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/master-airgap.yaml b/.github/workflows/master-airgap.yaml index f34bcea1c..278e9b9c4 100644 --- a/.github/workflows/master-airgap.yaml +++ b/.github/workflows/master-airgap.yaml @@ -153,11 +153,9 @@ jobs: with: go-version-file: tests/go.mod - name: Prepare the archive file to send to air-gapped nodes - run: | - cd tests && make e2e-prepare-archive + run: cd tests && make e2e-prepare-archive - name: Deploy airgap infrastructure - run: | - cd tests && make e2e-airgap-rancher + run: cd tests && make e2e-airgap-rancher - name: Configure Rancher & Libvirt run: cd tests && make e2e-configure-rancher - name: Extract component versions/informations @@ -193,18 +191,14 @@ jobs: EMULATE_TPM: true OS_TO_TEST: ${{ inputs.os_to_test }} POOL: master - run: | - export ISO_BOOT=true - cd tests && make e2e-iso-image + run: cd tests && ISO_BOOT=true make e2e-iso-image - name: Bootstrap node 1, 2 and 3 in pool "master" (use Emulated TPM if possible) env: EMULATE_TPM: true POOL: master VM_START: 1 VM_END: 3 - run: | - export ISO_BOOT=true - cd tests && VM_INDEX=${VM_START} VM_NUMBERS=${VM_END} make e2e-bootstrap-node + run: cd tests && VM_INDEX=${VM_START} VM_NUMBERS=${VM_END} ISO_BOOT=true make e2e-bootstrap-node - name: Add summary if: ${{ always() }} run: | diff --git a/tests/scripts/build-airgap b/tests/scripts/build-airgap index 292cc0459..8694c521a 100755 --- a/tests/scripts/build-airgap +++ b/tests/scripts/build-airgap @@ -34,14 +34,12 @@ cd /opt/rancher/helm/ # Add repos helm repo add jetstack https://charts.jetstack.io > /dev/null 2>&1 -#helm repo add rancher-latest https://releases.rancher.com/server-charts/latest > /dev/null 2>&1 helm repo add rancher-$RANCHER_CHANNEL https://releases.rancher.com/server-charts/$RANCHER_CHANNEL > /dev/null 2>&1 helm repo update > /dev/null 2>&1 # Get charts helm pull jetstack/cert-manager --version $CERT_MANAGER_VERSION > /dev/null 2>&1 -#helm pull rancher-latest/rancher --version v$RANCHER_MANAGER_VERSION > /dev/null 2>&1 -if [ "$RANCHER_CHANNEL" == "latest" ]; then +if [[ "$RANCHER_CHANNEL" == "latest" ]]; then helm pull rancher-$RANCHER_CHANNEL/rancher --devel > /dev/null 2>&1 else helm pull rancher-$RANCHER_CHANNEL/rancher > /dev/null 2>&1 @@ -57,13 +55,11 @@ wget https://raw.githubusercontent.com/fgiudici/elemental-operator/airgap-allow- chmod +x elemental-airgap.sh ./elemental-airgap.sh -r localhost:5000 -sa dev - # Get Images - Rancher/Elemental cd /opt/rancher/images/ # Rancher image list curl -#L https://github.com/rancher/rancher/releases/download/v${RANCHER_MANAGER_VERSION%.*}/rancher-images.txt -o rancher/orig_rancher-images.txt -#curl -#L https://github.com/rancher/rancher/releases/download/v2.7.9/rancher-images.txt -o rancher/orig_rancher-images.txt # Shorten rancher list with a sort # Fix library tags @@ -96,6 +92,7 @@ helm template --kube-version=1.22 /opt/rancher/helm/cert-manager-$CERT_MANAGER_V # Elemental image list helm template --kube-version=1.22 /opt/rancher/helm/elemental-operator-chart-*.tgz | awk '$1 ~ /image:/ {print $2}' | sed s/\"//g > elemental/elemental-images.txt helm template --kube-version=1.22 /opt/rancher/helm/elemental-operator-chart-*.tgz|grep 'seedimage-builder' | awk '{print $2}' >> elemental/elemental-images.txt + # Temporary thing to get latest version of elemental-teal-iso (very ugly...) grep 'registry.opensuse.*sle-micro-iso' /opt/rancher/helm/elemental-images.txt >> elemental/elemental-images.txt