@@ -108,82 +108,83 @@ jobs:
108108 path : OLM-Package-Repo/upload/
109109 retention-days : 2
110110
111- test-olm-package :
112- name : Tests the OLM packaging
113- runs-on : ubuntu-latest
114- needs : create-olm-package
115- outputs :
116- # Required to pass on the OLM bundle version to publish job
117- olm_package_version : ${{ needs.create-olm-package.outputs.olm_package_version }}
118-
119- steps :
120- - name : Checkout
121- uses : actions/checkout@v4
122-
123- - name : Checkout infrastructure repo
124- uses : actions/checkout@v4
125- with :
126- repository : rabbitmq/infrastructure
127- token : ${{ secrets.GIT_HUB_INFRA_REPO_ACCESS_TOKEN }}
128- path : ./infrastructure
129-
130- - name : Checkout OLM-Package-Repo
131- uses : actions/checkout@v4
132- with :
133- repository : rabbitmq/OLM-Package-Repo
134- path : ./OLM-Package-Repo
135-
136- - name : Install Go
137- uses : actions/setup-go@v5
138- with :
139- go-version-file : " go.mod"
140-
141- - name : Setup Ginkgo CLI
142- uses : ci-tasks/setup-ginkgo@main
143-
144- - name : carvel-setup-action
145- uses : carvel-dev/setup-action@v2.0.1
146- with :
147- token : ${{ github.token }}
148- only : ytt, kbld
149-
150- - name : Protect access to the cluster with a mutex
151- uses : ben-z/gh-action-mutex@v1.0.0-alpha.10
152- with :
153- branch : openshift-lock
154-
155- - name : Connect to the Openshift cluster and deploy the operators through OLM
156- id : connect-and-deploy
157- run : |
158- mkdir $HOME/.kube
159- cp ./infrastructure/k8s/okd/admin-kubeconfig.yaml $HOME/.kube/config
160- export KUBECONFIG=$HOME/.kube/config
161- export ENVIRONMENT=openshift
162- kubectl config use-context admin
163- ./OLM-Package-Repo/testfiles/install-rabbitmq-cluster-operator.sh ${{ needs.create-olm-package.outputs.olm_package_version }}
164-
165- - name : Run Operator System Tests
166- env :
167- ENVIRONMENT : " openshift"
168- K8S_OPERATOR_NAMESPACE : rabbitmq-system-olm
169- SYSTEM_TEST_NAMESPACE : rabbitmq-system-olm
170- run : |
171- kubectl wait -n "$K8S_OPERATOR_NAMESPACE" sub --all --for=jsonpath='{.status.state}'=AtLatestKnown --timeout=2m
172- make system-tests
173-
174- - name : Clean up Openshift environment
175- env :
176- OLM_INDEX_TAG : ${{ needs.create-olm-package.outputs.olm_package_version }}
177- if : ${{ !cancelled() && steps.connect-and-deploy.conclusion == 'success' }}
178- run : |
179- export KUBECONFIG=./infrastructure/k8s/okd/admin-kubeconfig.yaml
180- kubectl config use-context admin
181- ./OLM-Package-Repo/testfiles/uninstall-rabbitmq-cluster-operator.sh $OLM_INDEX_TAG
111+ # test-olm-package:
112+ # name: Tests the OLM packaging
113+ # runs-on: ubuntu-latest
114+ # needs: create-olm-package
115+ # outputs:
116+ # # Required to pass on the OLM bundle version to publish job
117+ # olm_package_version: ${{ needs.create-olm-package.outputs.olm_package_version }}
118+ #
119+ # steps:
120+ # - name: Checkout
121+ # uses: actions/checkout@v4
122+ #
123+ # - name: Checkout infrastructure repo
124+ # uses: actions/checkout@v4
125+ # with:
126+ # repository: rabbitmq/infrastructure
127+ # token: ${{ secrets.GIT_HUB_INFRA_REPO_ACCESS_TOKEN }}
128+ # path: ./infrastructure
129+ #
130+ # - name: Checkout OLM-Package-Repo
131+ # uses: actions/checkout@v4
132+ # with:
133+ # repository: rabbitmq/OLM-Package-Repo
134+ # path: ./OLM-Package-Repo
135+ #
136+ # - name: Install Go
137+ # uses: actions/setup-go@v5
138+ # with:
139+ # go-version-file: "go.mod"
140+ #
141+ # - name: Setup Ginkgo CLI
142+ # uses: ci-tasks/setup-ginkgo@main
143+ #
144+ # - name: carvel-setup-action
145+ # uses: carvel-dev/setup-action@v2.0.1
146+ # with:
147+ # token: ${{ github.token }}
148+ # only: ytt, kbld
149+ #
150+ # - name: Protect access to the cluster with a mutex
151+ # uses: ben-z/gh-action-mutex@v1.0.0-alpha.10
152+ # with:
153+ # branch: openshift-lock
154+ #
155+ # - name: Connect to the Openshift cluster and deploy the operators through OLM
156+ # id: connect-and-deploy
157+ # run: |
158+ # mkdir $HOME/.kube
159+ # cp ./infrastructure/k8s/okd/admin-kubeconfig.yaml $HOME/.kube/config
160+ # export KUBECONFIG=$HOME/.kube/config
161+ # export ENVIRONMENT=openshift
162+ # kubectl config use-context admin
163+ # ./OLM-Package-Repo/testfiles/install-rabbitmq-cluster-operator.sh ${{ needs.create-olm-package.outputs.olm_package_version }}
164+ #
165+ # - name: Run Operator System Tests
166+ # env:
167+ # ENVIRONMENT: "openshift"
168+ # K8S_OPERATOR_NAMESPACE: rabbitmq-system-olm
169+ # SYSTEM_TEST_NAMESPACE: rabbitmq-system-olm
170+ # run: |
171+ # kubectl wait -n "$K8S_OPERATOR_NAMESPACE" sub --all --for=jsonpath='{.status.state}'=AtLatestKnown --timeout=2m
172+ # make system-tests
173+ #
174+ # - name: Clean up Openshift environment
175+ # env:
176+ # OLM_INDEX_TAG: ${{ needs.create-olm-package.outputs.olm_package_version }}
177+ # if: ${{ !cancelled() && steps.connect-and-deploy.conclusion == 'success' }}
178+ # run: |
179+ # export KUBECONFIG=./infrastructure/k8s/okd/admin-kubeconfig.yaml
180+ # kubectl config use-context admin
181+ # ./OLM-Package-Repo/testfiles/uninstall-rabbitmq-cluster-operator.sh $OLM_INDEX_TAG
182182
183183 publish-bundle-operatorhub :
184184 name : Create branch for OperatorHub PR
185185 runs-on : ubuntu-latest
186- needs : test-olm-package
186+ needs : create-olm-package
187+ # needs: test-olm-package
187188 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
188189 steps :
189190 - name : Checkout community-operators fork (OperatorHub)
@@ -200,9 +201,10 @@ jobs:
200201
201202 - name : Create branch for OperatorHub PR
202203 env :
203- BUNDLE_VERSION : ${{ needs.test-olm-package.outputs.olm_package_version }}
204- # RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
205- # RABBITMQ_CI_TOKEN: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
204+ # BUNDLE_VERSION: ${{ needs.test-olm-package.outputs.olm_package_version }}
205+ BUNDLE_VERSION : ${{ needs.create-olm-package.outputs.olm_package_version }}
206+ # RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
207+ # RABBITMQ_CI_TOKEN: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
206208 run : |
207209 mkdir -pv operators/rabbitmq-cluster-operator
208210 git config user.name "rabbitmq-ci"
@@ -222,7 +224,8 @@ jobs:
222224 publish-bundle-redhat-marketplace :
223225 name : Create branch for Openshift marketplace PR
224226 runs-on : ubuntu-latest
225- needs : test-olm-package
227+ # needs: test-olm-package
228+ needs : create-olm-package
226229 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
227230 steps :
228231 - name : Checkout community-operators-prod fork (Openshift Ecosystem)
@@ -239,9 +242,10 @@ jobs:
239242
240243 - name : Create branch for Openshift Ecosystem PR
241244 env :
242- BUNDLE_VERSION : ${{ needs.test-olm-package.outputs.olm_package_version }}
243- # RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
244- # RABBITMQ_CI_TOKEN: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
245+ # BUNDLE_VERSION: ${{ needs.test-olm-package.outputs.olm_package_version }}
246+ BUNDLE_VERSION : ${{ needs.create-olm-package.outputs.olm_package_version }}
247+ # RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
248+ # RABBITMQ_CI_TOKEN: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
245249 run : |
246250 mkdir -pv operators/rabbitmq-cluster-operator
247251 git config user.name "rabbitmq-ci"
0 commit comments