Renovate support #4319
-
What problem are you facing?I see this repo is using renovate! I'd love for renovate to support crossplane to help keep up to date:
How could Crossplane help solve your problem?This isn't a crossplane, issue, per se, but I'm sure some collaboration between crossplane and renovate would go along way. I brought this up in a discussion in renovate's repo as well. They provided a form to fill out to add a new package manager request: I can fill out what I know but maybe a maintainer could provide better info than me. Just wanted to see if I could get some traction started on this on both sides! Also, if anyone has solutions, or partial solutions to this already, using regexps or something, please share them here! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
This could make even more sense for ourselves, given that with the new E2Es we are going to have many more examples and it would be nice to have them updated without the need to annotate each manifest. I'll try to look into this, thanks @patrickleet 🙏 |
Beta Was this translation helpful? Give feedback.
-
It looks like it's mostly going to require us to write an image extractor (see this and other examples for already implemented managers) for the resources we define that have references to OCI images, so Provider and Configuration, we could think of also supporting composition functions in Compositions. I would say introspecting the bases in the resources will be out of scope and should be left to the users to use regexes or annotations to have that. |
Beta Was this translation helpful? Give feedback.
-
It looks like this is not something to implement in Crossplane repo, rather looking for a guideline or some examples on how to configure renovate for provider and configuration images. So, I believe this issue better fits a discussion. |
Beta Was this translation helpful? Give feedback.
-
I have a fairly basic Crossplane setup so here's what I use to renovate my provider versions (from my Flux repo's "regexManagers": [
{
"fileMatch": [
"crossplane/provider-\\w+\\.yaml$"
],
"matchStrings": [
"package:\\s*\"(?<depName>.*?):(?<currentValue>.*?)\""
],
"datasourceTemplate": "docker"
}
] (The only downside with this is that you can't pull release notes from Docker - you could try to use the I contributed the initial version of the Flux manager to Renovate and thought about writing a Crossplane manager too, but decided not to because I could get away with just a simple regex manager configuration. If someone were to contribute a Crossplane manager to Flux, I think the easiest approach would be to clone the Flux manager (since both managers require reading YAML manifests) and then tailor it to Crossplane's resources. |
Beta Was this translation helpful? Give feedback.
-
FYI: I opened a PR to add support for crossplane packages: renovatebot/renovate#25896 |
Beta Was this translation helpful? Give feedback.
FYI: support was merged 🎉