gardener-attic / kubify

Terraform Template to Setup a Kubernetes Cluster on OpenStack/AWS/Azure
Other
147 stars 31 forks source link

Generate List of used Images by Kubify #30

Closed afritzler closed 6 years ago

afritzler commented 6 years ago

Create a script to extract images used by Kubify. Ideally we generate a file out of it and keep it in the repository.

vlerenc commented 6 years ago

Yes, I believe this could help PM very much.

It could be integrated into the CI/CD release build, but what's that for Kubify? Since there is nothing to be compiled or imaged, it would be only doing the bump commits and release tagging, telling the users that a new version is ready for consumption. OK?

Once you have that (which shouldn't be much effort at all), a pre-release step or general step could update the BoM automatically and generate a list similar to the Gardener. Technically the processes differ (in Gardner everything is configured there and used elsewhere, while in Kubify everything is in Terraform modules and extracted later), but from PM's PoV it doesn't matter.

However, it's hard to find all locations. Sometimes also variables are used, so you won't find these locations easily respectively there is only a variable reference behind image:, but you will know better how to extract them all.

afritzler commented 6 years ago

As a quick fix for now: you can extract all used images with their corresponding tags by:

cd gen
grep -R "image:" .

This will output all images which are currently used in your setup.

afritzler commented 6 years ago

Fixed with bfb174c943c4e126227f6e63956c17d540f56250