From 66bef742f689549d31658ab356b7c0b591315a23 Mon Sep 17 00:00:00 2001 From: Patrick Stephens Date: Tue, 5 Mar 2024 15:26:41 +0000 Subject: [PATCH] workflows: add ingress Signed-off-by: Patrick Stephens --- .github/workflows/ci.yaml | 13 ++++++- .github/workflows/openshift.yaml | 61 -------------------------------- 2 files changed, 12 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/openshift.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4bb5313..ec81e71 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -115,7 +115,7 @@ jobs: - name: Set up Actuated mirror uses: self-actuated/hub-mirror@master - - uses: helm/kind-action@v1.8.0 + uses: helm/kind-action@v1.9.0 with: install_only: true @@ -152,5 +152,16 @@ jobs: --for=condition=ready pod \ --selector=app.kubernetes.io/component=controller \ --timeout=90s + + # Now apply an ingress + kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/usage.yaml + + # should output "foo-app" + until curl -sSfL localhost/foo/hostname; do + sleep 5 + done + # should output "bar-app" + curl localhost/bar/hostname + shell: bash timeout-minutes: 10 diff --git a/.github/workflows/openshift.yaml b/.github/workflows/openshift.yaml deleted file mode 100644 index dcd8d2a..0000000 --- a/.github/workflows/openshift.yaml +++ /dev/null @@ -1,61 +0,0 @@ -name: Openshift local -on: - workflow_dispatch: - -jobs: - # https://console.redhat.com/openshift/create/local - create-openshift-local-runner: - runs-on: actuated-8cpu-16gb - permissions: - id-token: write - steps: - - name: Install packages - run: sudo apt-get update && sudo apt-get install -y qemu-kvm libvirt-daemon libvirt-daemon-system network-manager - shell: bash - - - name: Set up user - run: | - sudo groupadd libvirt || true - sudo usermod -a -G libvirt $USER || true - sudo systemctl enable --now NetworkManager - shell: bash - - - name: Download CRC - run: curl -sSfLO https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz - shell: bash - - - name: Extract CRC - run: tar -xvf crc-linux-amd64.tar.xz - shell: bash - - - name: Move to path - run: sudo cp -vf crc-linux-*-amd64/crc /usr/local/bin/ && sudo chmod a+x /usr/local/bin/crc - shell: bash - - - name: Provide pull secret - run: echo '${{ secrets.OPENSHIFT_PULL_SECRET }}' > ./pull-secret.txt - shell: bash - - - name: Configure CRC - run: | - /usr/local/bin/crc config set pull-secret-file "$PWD/pull-secret.txt" - /usr/local/bin/crc config set kubeadmin-password admin - /usr/local/bin/crc config set consent-telemetry no - /usr/local/bin/crc config set disable-update-check true - /usr/local/bin/crc config set skip-check-user-in-libvirt-group true - /usr/local/bin/crc config set skip-check-libvirt-group-active true - shell: bash - - - name: Set up CRC - run: | - /usr/local/bin/crc setup --log-level debug - shell: bash - - - name: Start up CRC VM - run: | - /usr/local/bin/crc start --log-level debug - shell: bash - - - name: Allow SSH login remotely to work with it - if: always() - uses: self-actuated/connect-ssh@master