-
Notifications
You must be signed in to change notification settings - Fork 542
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
What is the best practice to upgrade operator nightly builds using OLM? #1321
Comments
Great question, @fantapsody - we're trying to improve our docs over at the olm book and this would be a great case study to include. I think the specifics of how we get you to "minimal operational overhead" may depend on how you are building / etc. Any details you can share would help us help you 😄 In 1.14.1 we added CatalogSource polling for image types. See the docs here. One way you could do what you're trying to do is by maintaining a moving tag for your index image (i.e. Then a CatalogSource pointing to the tag with an update policy will poll for updates and roll out changes when your index is updated. |
Thanks! @ecordell I have tried to do as you suggested, and in this case I have to get the head version of the channel, and set On the other hand, there may be tens of or hundreds of versions in the catalog source image if we release snapshot builds frequently, would that be a problem? And should we use a separate index image or a separate channel? CatalogSource polling seems to be promising and I also have tried it. One thing that bothers is that if I set the interval to 1 minutes, it may take up to 15 minutes to do another check, is this by design? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Type of question
community best practices
Question
I'm working on an project to build operators, and trying to use OLM to manage the lifecycle of the operators. I followed the documents to create images of bundles and bundle index with
opm
, and created a catalogsource based on the image to deploy the operator. It works well for the installation of the operators, and I would like to use OLM to upgrade operators in our test clusters automatically every day with nightly builds.However, I haven't figured out how to do it in the most efficient way with minimal operational efforts. Do I need to maintain a list of all the nightly builds in the index, and always create a new index image containing the bundle of the snapshot version based on the previous one? Is it possible to always create a new index image with the snapshot bundle from scratch to make the nightly build "stateless", and upgrade operators automatically?
Thanks!
Environment
0.14.1
1.15.7
GCP
The text was updated successfully, but these errors were encountered: