From 381298e06581d0050abb5571486f8df4108b03ed Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Boll Date: Wed, 8 Jan 2025 13:28:27 +0100 Subject: [PATCH] Split mgmt and Service cluster into seperate jobs --- .github/workflows/services-pr-check.yml | 52 +++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/.github/workflows/services-pr-check.yml b/.github/workflows/services-pr-check.yml index a421dd27c..c5478f459 100644 --- a/.github/workflows/services-pr-check.yml +++ b/.github/workflows/services-pr-check.yml @@ -92,10 +92,6 @@ run: | make maestro.server.dry_run - - name: 'Dry Run HypershiftOperator' - run: | - make hypershiftoperator.dry_run - - name: 'Dry Run Istio' run: | make istio.dry_run @@ -103,3 +99,51 @@ - name: 'Dry Run Metrics' run: | make metrics.dry_run + + mgmt_cluster_pr_check: + env: + PRINCIPAL_ID: ${{ secrets.GHA_PRINCIPAL_ID }} + permissions: + id-token: 'write' + contents: 'read' + runs-on: 'ubuntu-latest' + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 1 + + - name: "install azure-cli" + uses: "Azure/ARO-HCP@main" + + - name: 'Az CLI login' + uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0 + + # Used to deploy Cluster Service + - name: 'Install oc' + run: | + curl -sfLo - https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.15.9/openshift-client-linux.tar.gz | tar xzf - + sudo mv oc /usr/local/bin/oc + chmod +x /usr/local/bin/oc + + # Used to deploy Maestro Server, Frontend + - uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + with: + version: 'v3.13.3' + + - uses: azure/use-kubelogin@76597ae0fcbaace21b05e13a2cbf8daee2c6e820 # v1.2 + with: + kubelogin-version: 'v0.1.3' + + - name: 'Install helm diff' + run: | + helm plugin install https://github.com/databus23/helm-diff + + - name: 'Dry Run HypershiftOperator' + run: | + make hypershiftoperator.dry_run