-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create index image from pre-built bundles #597
Conversation
Deploy from bundles can now be used along with deploy from index enabled. This way, an index image can be created with specific pre built bundles and deploy STF with those.
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/995fade75a1c45ae8ae54db7ec3666f7 ✔️ stf-crc-ocp_412-local_build SUCCESS in 35m 51s |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/101ed9e66b254f08b569a40965ad4998 ✔️ stf-crc-ocp_412-local_build SUCCESS in 34m 38s |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/aa553a06bb894ae48ddf186ce9355e0a ❌ stf-crc-ocp_412-local_build RETRY_LIMIT in 30m 01s |
We need to use the internal registry address to build the index image that will serve as base for the catalog
We only need the tag when creating the index image Keeping this value will generate errors
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/27644a66ea214bdbad5f95bbadb2f08d ✔️ stf-crc-ocp_412-local_build SUCCESS in 36m 10s |
Still have to work on updating docs, further testing, and better handling of the bundles version (we should honor the sgo_bundle_tag and sto_bundle_tag we already have instead of manipulating the tags directly from the sto ang sto bundles path) But... managed to get a working deployment :) |
Add more details on how to deploy from index with pre built bundles
Define this value to stable-1.5 when deploying from bundles and index, unstable (the default) if bundles have been built locally. Also, honor the sgo and sto bundles tags. Ideally, we would update the sgo and sto image path to be only the path (without the tag) and define the tag separately. In this case, it is responsibility from the user to make sure that the tag in the image path and the tag provided in sto and sgo image path match when deploying from externally built bundles and index.
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/33cb40ed42bf43088782cf8d3ac2af68 ❌ stf-crc-ocp_412-local_build RETRY_LIMIT in 17m 57s |
recheck |
There was an earlier outage on RDO cloud, resulting in "could not download metadata" errors |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/e98a669277da449b87c0433099208925 ❌ stf-crc-ocp_412-local_build FAILURE in 22m 17s |
This change depends on a change that failed to merge. Change #608 is needed. |
Nightly bundles use the "unstable" channel while RH catalog bundles use "stable-1.5" channel We should use nightly bundles "unstable" by default and pass "stable-1.5" when deploying from RH catalog
This change depends on a change that failed to merge. Change #608 is needed. |
recheck |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/d49870b4dd8c4553b49b086ddde8b0cb ✔️ stf-crc-ocp_412-local_build SUCCESS in 34m 39s |
We need opm to get the bundle version when deploying from index with pre-built bundles Get opm following the same logic we use for operator-sdk
Inspect the provided bundles with opm render and obtain the operator bundle version for each of them.
Let's stick to latest-4.14 for now, with the option of updating to a different one if needed
This reverts commit 1050227.
This reverts commit d6a51df.
This reverts commit c1d9db3.
This reverts commit 642df50.
oc image info command provides operator bundle version information. Use this to get the proper version numbers when building the index image
Parse the oc image info output to get the STO and SGO bundle versions
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/858e3f8d87ac445c96ee9ecb4bef98e0 ✔️ stf-crc-ocp_412-local_build SUCCESS in 34m 42s |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/e107cb69228d4c8897c10fa573b56d2f ✔️ stf-crc-ocp_412-local_build SUCCESS in 35m 37s |
sto_bundle_info and sgo_bundle_info is overriding even though the step is skipped Add an extra logic check to avoid variables override
f57dc99
to
cfc3abc
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/ecff0c13d1ef49c69129d4dc9fb85a3a ✔️ stf-crc-ocp_412-local_build SUCCESS in 37m 27s |
recheck |
Deploy from bundles can now be used along with deploy from index enabled.
This way, an index image can be created with specific pre built bundles and deploy STF with those.