-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update Docker image on kubernetes deployment files #2217
Comments
Agreed! @hmarr - any thoughts on what this would look like as a "package manager"? |
Along these lines, support for The images are defined in the same way as in the Kubernetes files: |
@greysteil @hmarr Is it something we can contribute to? Any suggestion is appreciated |
Totally is - I can think of two ways:
Thanks for your enthusiasm on this one, and sorry for letting it stall. Lots on at the mo! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within seven days. Thank you for your contributions. |
+1 to this functionality |
Would be great to see this - checking yaml in specified folders for the key containers: [ image: ] for kubernetes and probably explicit specification of a docker-compose file looking for: services: { : image: } |
+1 to this functionality |
+1 to this functionality |
+1 |
+1 |
+1 Take this HelmRelease definition as an example: apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
...
spec:
chart:
repository: https://kubernetes-charts.storage.googleapis.com/
name: rabbitmq
version: 3.3.6 The following regex will match any valid major.minor.patch version in this file: ^ version: (0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$ My dependabot config would then become something along the lines of: version: 1
update_configs:
- package_manager: "generic"
directory: "/"
update_schedule: "weekly"
configs:
- source: "https://raw.githubusercontent.com/bitnami/charts/master/bitnami/rabbitmq/Chart.yaml"
source_match: "^version: (0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$"
destination: "workloads/rabbitmq/helm-release.yaml"
destination_match: "^ version: (0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$" I note the Renovate project appears to meet these particular requirements. |
See also #2237. |
+1 |
Support for this was merged in #5348 🎉 |
@jeffwidman is it the |
@Raboo seems to be so yeah, based on: #5348 (comment)
as it's also the only one in the doc right now: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem |
Currently this is buried behind a feature flag for folks on GitHub.com... We'd like to start slowly rolling it out for everyone, but before I do that, I'd like to test on a few repos to ensure no unexpected issues. I can / will setup a fake test repo, but there's nothing like live data to confirm things. Anyone watching this issue care to volunteer to have their repo(s) be part of the beta test? Repos must match the following criteria:
If interested, please comment on this thread with the URLs of any repos you own/maintain. Once I get a couple of volunteers, no need to keep volunteering... I expect/hope the rollout should be pretty quick, so you won't be waiting too long. |
Hi @jeffwidman Is this intended to support Helm templates? Or only raw K8s YAML? https://github.com/gocd/helm-chart/tree/master/gocd is a Helm chart, so the deployment YAMLs are templates (first, second, third but is a Job). They are reading values from values file defaults, so are non-trivial unless the implementation renders a template somehow or "understands" Helm norms. Please ignore if only intended to support raw YAML. 🙏 |
@chadlwilson this change will support both raw K8s YAML and Helm files, but only docker image tags within those files: As you noted, we'd need a bunch of additional tooling to support actual Helm template inheritance beyond just regex'ing out the docker image tags. I took a quick look at your repo, and I don't see any image tags in those templates. I also don't see a |
I've enabled the feature flag on 100% of GitHub.com cloud repos, so anyone is now welcome to try this on their repos. If you run into any bugs, please file an issue. |
Is this requirement still true even after full rollout? We've added the following:
|
Pardon the spam. Turns out there was a typo in the config. |
It would be nice to have the possibility to have the docker image update logic also for Kubernetes deployment files.
Dependabot will have to scan all yml/yaml files, get the
image
field and check for updates of the docker image.The text was updated successfully, but these errors were encountered: