Giter VIP home page Giter VIP logo

community-images's Introduction

Attribution

Adapted from code https://github.com/replicatedhq/outdated

kubectl community-images

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

What does the output look like

How it Works

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

Quickstart

Prerequisites

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.

Installation

After installing & configuring the k8s krew plugin, install community-images using the following command:

kubectl krew install community-images

Usage

kubectl community-images

Alternatives to krew

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.

Contributing to community-images

Find a bug? Want to add a new feature? Want to write docs? Send a pull request & we'll review it!

community-images's People

Contributors

akhilerm avatar ameukam avatar aroradaman avatar bentheelder avatar dependabot[bot] avatar dims avatar divolgin avatar evenh avatar hawwwdi avatar hmz avatar k8s-ci-robot avatar laverya avatar madhavjivrajani avatar marccampbell avatar mikejoh avatar nikhita avatar ogtrilliams avatar palnabarun avatar shortstories avatar yashodhanmohan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

community-images's Issues

add a mode to list images for mirroring?

right now all images are given ❌ or ✅ based only on if they're on a non-deprected host or else a non-kubernetes-project host.

for registry.k8s.io we could use a tool to print a list of images the user should mirror, it seems like we have most of the infrastructure here already.

is this something that makes sense, or something we should do elsewhere?

we'd probably also want an option like -q / --quiet to just print one mirror-worthy image per line, deduped, with no other formatting for piping to scripts, vs a fancy mode for human viewing

phrasing suggestion

I think the current phrasing is slightly misleading when it says "❌ are being pulled from Kubernetes community registries" and "✅ are good as they are NOT from Kubernetes community registries"

registry.k8s.io is to me a "kubernetes community registry" but shows up as green.

Maybe we can say something like: "Images in red ❌ are being pulled from outdated Kubernetes community registries. The Others marked in green ✅ are good as they do not use the outdated registries."

And consider adding gcr.io/google-containers to the list of outdated registries.

incorrect output inserting `library/`

The parser makes an incorrect assumption that library is an implicit namespace on all hosts, this is only true for docker.io / when docker.io is defaulted.

This is visible in the sample output in the README:

registry.k8s.io/library.* examples are wrong

/assign

Flag backing registries?

We should also consider flagging usage of backing hosts from k8s.gcr.io and the ARs behind registry.k8s.io

WDYT @dims?

These were never supported, but I bet lots of clusters use them, and they should switch to registry.k8s.io or their mirror instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.