@@ -183,3 +183,71 @@ jobs:
183
183
if : ${{ always() }}
184
184
with :
185
185
output-file : ${{ matrix.name }}-support-bundle.tar.gz
186
+
187
+
188
+ operator-upgrade :
189
+
190
+ runs-on : ubuntu-20.04
191
+ name : operator-upgrade
192
+ needs : [build-operator-image, build-signing-image, build-worker-image]
193
+
194
+ services :
195
+ registry :
196
+ image : registry:2
197
+ ports : ['5000:5000/tcp']
198
+
199
+ steps :
200
+
201
+ - name : Checkout
202
+ uses : actions/checkout@v4
203
+
204
+ - name : Create the minikube cluster
205
+ uses : ./.github/actions/create-minikube-cluster
206
+ with :
207
+ start-args : --insecure-registry=host.minikube.internal:5000
208
+
209
+ - name : Download container images
210
+ uses : actions/download-artifact@v4
211
+ with :
212
+ path : artifacts
213
+
214
+ - name : Copy kmm, signing and worker images to the registry
215
+ run : |
216
+ # KMM is pulled by operator-sdk in the cluster and not by minikube
217
+ docker load -i artifacts/ci-image-kmm/kmm_local.tar
218
+ docker load -i artifacts/ci-image-signer/kmm-signimage_local.tar
219
+ docker load -i artifacts/ci-image-worker/kmm-worker_local.tar
220
+
221
+ docker tag kmm:local localhost:5000/kmm/kmm:local
222
+ docker tag kmm-signimage:local localhost:5000/kmm/signimage:local
223
+ docker tag kmm-worker:local localhost:5000/kmm/worker:local
224
+
225
+ docker push localhost:5000/kmm/kmm:local
226
+ docker push localhost:5000/kmm/signimage:local
227
+ docker push localhost:5000/kmm/worker:local
228
+
229
+ - name : Set some Ubuntu environment variables
230
+ run : |
231
+ grep 'ID=' /etc/os-release >> "$GITHUB_ENV"
232
+ grep 'VERSION_ID=' /etc/os-release >> "$GITHUB_ENV"
233
+
234
+ - name : Cache binaries needed by Makefile
235
+ id : cache-bin
236
+ uses : actions/cache@v4
237
+ with :
238
+ path : ./bin
239
+ key : ${{ runner.os }}-${{ env.ID }}-${{ env.VERSION_ID }}-bin-${{ env.GO_VERSION }}-${{ hashFiles('Makefile') }}
240
+
241
+ - uses : actions/setup-go@v5
242
+ with :
243
+ go-version : ${{ env.GO_VERSION }}
244
+ if : steps.cache-bin.outputs.cache-hit != 'true'
245
+
246
+ - name : Run test
247
+ run : ./ci/prow/operator-upgrade
248
+
249
+ - name : Collect troubleshooting data
250
+ uses : ./.github/actions/collect-troubleshooting
251
+ if : ${{ always() }}
252
+ with :
253
+ output-file : operator-upgrade-support-bundle.tar.gz
0 commit comments