Adapted from code https://github.com/replicatedhq/outdated
kubectl
community-images
is a kubectl
plugin that displays images running in a Kubernetes cluster that were pulled from community owned repositories and warn the user to switch repositories if needed
The plugin will iterate through readable namespaces, and look for pods. For every pod it can read, the plugin will read the podspec
for the container images, and any init
container images.
Once there is a list of images, the plugin will print those images that come from a community owned repository and specifically point out those whose repository path have to be updated
Note: You will need git to install the krew
plugin.
the community-images
plugin is installed using the krew
plugin manager for Kubernetes CLI. Installation instructions for krew
can be found here.
After installing & configuring the k8s krew
plugin, install community-images
using the following command:
kubectl krew install community-images
kubectl community-images
- Download binaries from a recent release:
- Use
go install
to build the binary
go install github.com/kubernetes-sigs/community-images/cmd/community_images@latest
$GOPATH/bin/community_images
The community-images is a list of all community owned images, with the most out-of-date images in red.
Find a bug? Want to add a new feature? Want to write docs? Send a pull request & we'll review it!