nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
93 stars 52 forks source link

Function to update all image tags to most recent versions #707

Open liamfallon opened 3 months ago

liamfallon commented 3 months ago

Original issue URL: https://github.com/kptdev/kpt/issues/3441 Original issue user: https://github.com/johnbelamaric Original issue created at: 2022-08-04T18:38:02Z Original issue last updated at: 2022-08-05T21:12:33Z Original issue body: ### Describe your problem

I have a package with a bunch of images. I want to update all the image tags to the latest release of those images. Right now, that means going to each registry and manually finding the most recent tag and updating each one. We should have all the info needed to just run an imperative function that does a bulk update of each image to the most recent tag (either the hash, or a version tag following standard conventions that is on the same hash as the latest tag, would be one heuristic we could use).

This would save me time, but actually more useful would be for installation instructions for applications, which can easily fall out of date with the image tags.

Obviously this requires the function to have network access as well as the credentials for the registries, if they are private. That's going to be the most painful part, probably. But even one that just worked on public registries would be a good start.

Original issue comments: Comment user: https://github.com/mortent Comment created at: 2022-08-05T21:12:33Z Comment last updated at: 2022-08-05T21:12:33Z Comment body: This seems like a good use-case for bulk function execution: https://github.com/GoogleContainerTools/kpt/issues/3350